diff --git a/after/ftplugin/gohtmltmpl.vim b/after/ftplugin/gohtmltmpl.vim index 5d92af1..8b13789 100644 --- a/after/ftplugin/gohtmltmpl.vim +++ b/after/ftplugin/gohtmltmpl.vim @@ -1,10 +1 @@ -function DetectGoHtmlTmpl() - if expand('%:e') == "html" && search("{{") != 0 - setfiletype gohtmltmpl - endif -endfunction -augroup filetypedetect - " gohtmltmpl - au BufRead,BufNewFile *.html call DetectGoHtmlTmpl() -augroup END diff --git a/after/plugin/fileformat.vim b/after/plugin/fileformat.vim index 5d92af1..32d385e 100644 --- a/after/plugin/fileformat.vim +++ b/after/plugin/fileformat.vim @@ -1,6 +1,6 @@ function DetectGoHtmlTmpl() if expand('%:e') == "html" && search("{{") != 0 - setfiletype gohtmltmpl + setfiletype gohtmltmpl endif endfunction