diff --git a/after/plugin/fileformat.vim b/after/plugin/fileformat.vim index e69de29..17a81f3 100644 --- a/after/plugin/fileformat.vim +++ b/after/plugin/fileformat.vim @@ -0,0 +1,11 @@ + +function DetectGoHtmlTmpl() + if expand('%:e') == "html" && search("{{") != 0 + setfiletype gohtmltmpl + endif +endfunction + +augroup filetypedetect + " gohtmltmpl + au BufRead,BufNewFile *.html call DetectGoHtmlTmpl() +augroup END