Skip to content

Commit

Permalink
Set the gohtmltmpl filetype, even if it already set
Browse files Browse the repository at this point in the history
*.tmpl is already detected in vim/runtime/filetype.vim
Using `setfiletype` prevents overriding
  • Loading branch information
PaulDugdale committed Jan 26, 2021
1 parent 007d9bc commit 0efc65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftdetect/gofiletype.vim
Expand Up @@ -7,7 +7,7 @@ set cpo&vim
" Note: should not use augroup in ftdetect (see :help ftdetect)
au BufRead,BufNewFile *.go setfiletype go
au BufRead,BufNewFile *.s setfiletype asm
au BufRead,BufNewFile *.tmpl setfiletype gohtmltmpl
au BufRead,BufNewFile *.tmpl set filetype=gohtmltmpl
au BufRead,BufNewFile go.sum set filetype=gosum

" remove the autocommands for modsim3, and lprolog files so that their
Expand Down

0 comments on commit 0efc65f

Please sign in to comment.