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