vim: use setlocal for filetype
parent
6b7af8cb48
commit
6da415ed36
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue