11 lines
243 B
VimL
11 lines
243 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
|