go.nvim/runtime/filetype.vim

18 lines
421 B
VimL
Raw Normal View History

2022-04-30 02:47:41 +00:00
let s:cpo_save = &cpo
set cpo&vim
au BufRead,BufNewFile *.go setfiletype go
au BufRead,BufNewFile *.s setfiletype asm
au BufRead,BufNewFile *.tmpl set filetype=gohtmltmpl
au BufRead,BufNewFile go.sum set filetype=gosum
au BufRead,BufNewFile go.work.sum set filetype=gosum
au BufRead,BufNewFile go.work set filetype=gowork
au! BufRead,BufNewFile *.mod,*.MOD
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: sw=2 ts=2 et