vim: use setlocal for filetype
parent
6b7af8cb48
commit
6da415ed36
|
@ -501,10 +501,10 @@ augroup AGW
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
" .rkt → Racket
|
" .rkt → Racket
|
||||||
au BufRead,BufNewFile *.rkt set syntax=racket
|
au BufRead,BufNewFile *.rkt setlocal filetype=racket
|
||||||
|
|
||||||
" .edf → conf
|
" .edf → conf
|
||||||
au BufRead,BufNewFile *.edf set syntax=conf
|
au BufRead,BufNewFile *.edf setlocal filetype=conf
|
||||||
|
|
||||||
" disable most ftplugins
|
" disable most ftplugins
|
||||||
au BufReadPre * let b:did_ftplugin=1
|
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
|
" to fix this we simply do the same thing before it has a chance to
|
||||||
au BufRead,BufNewFile Cargo.toml
|
au BufRead,BufNewFile Cargo.toml
|
||||||
\ if &filetype == "" |
|
\ if &filetype == "" |
|
||||||
\ set filetype=toml |
|
\ setlocal filetype=toml |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
" close empty buffers automatically
|
" close empty buffers automatically
|
||||||
|
|
Loading…
Reference in New Issue