12 lines
244 B
VimL
12 lines
244 B
VimL
|
|
function DetectGoHtmlTmpl()
|
|
if expand('%:e') == "html" && search("{{") != 0
|
|
setfiletype gohtmltmpl
|
|
endif
|
|
endfunction
|
|
|
|
augroup filetypedetect
|
|
" gohtmltmpl
|
|
au BufRead,BufNewFile *.html call DetectGoHtmlTmpl()
|
|
augroup END
|