vim: use setlocal for filetype

master
an 2019-09-22 21:28:18 -04:00
parent 6b7af8cb48
commit 6da415ed36
1 changed files with 3 additions and 3 deletions

View File

@ -501,10 +501,10 @@ augroup AGW
\ endif
" .rkt → Racket
au BufRead,BufNewFile *.rkt set syntax=racket
au BufRead,BufNewFile *.rkt setlocal filetype=racket
" .edf → conf
au BufRead,BufNewFile *.edf set syntax=conf
au BufRead,BufNewFile *.edf setlocal filetype=conf
" disable most ftplugins
au BufReadPre * let b:did_ftplugin=1
@ -514,7 +514,7 @@ augroup AGW
" to fix this we simply do the same thing before it has a chance to
au BufRead,BufNewFile Cargo.toml
\ if &filetype == "" |
\ set filetype=toml |
\ setlocal filetype=toml |
\ endif
" close empty buffers automatically