From d5d77ee7f5b6fd23bfb899137c1aef282177748f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 11 Dec 2016 14:55:10 +1300 Subject: Set buffer type (not global type) for sh properly --- vim/after/ftdetect/sh.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim/after/ftdetect/sh.vim') diff --git a/vim/after/ftdetect/sh.vim b/vim/after/ftdetect/sh.vim index 3a9fa531..73bbfffe 100644 --- a/vim/after/ftdetect/sh.vim +++ b/vim/after/ftdetect/sh.vim @@ -1,17 +1,17 @@ " Names/paths of things that are Bash shell script autocmd BufNewFile,BufRead \ **/.dotfiles/bash/**,bash-fc-* - \ let g:is_bash = 1 | + \ let b:is_bash = 1 | \ setlocal filetype=sh " Names/paths of things that are Korn shell script autocmd BufNewFile,BufRead \ **/.dotfiles/pdksh/**,.pdkshrc,*.pdksh - \ let g:is_kornshell = 1 | + \ let b:is_kornshell = 1 | \ setlocal filetype=sh " Names/paths of things that are POSIX shell script autocmd BufNewFile,BufRead \ **/.dotfiles/sh/**,.shinit,.shrc,.xinitrc,/etc/default/* - \ let g:is_posix = 1 | + \ let b:is_posix = 1 | \ setlocal filetype=sh -- cgit v1.2.3