From 6da415ed36cefe68b03f748372020c2e201a4335 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Sun, 22 Sep 2019 21:28:18 -0400 Subject: [PATCH] vim: use setlocal for filetype --- vim/vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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