diff --git a/vim/vimrc b/vim/vimrc index dc7d6b2..850c130 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -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