diff options
Diffstat (limited to 'vim/after/ftdetect/sh.vim')
-rw-r--r-- | vim/after/ftdetect/sh.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/after/ftdetect/sh.vim b/vim/after/ftdetect/sh.vim index 73bbfffe..1d87d43e 100644 --- a/vim/after/ftdetect/sh.vim +++ b/vim/after/ftdetect/sh.vim @@ -15,3 +15,10 @@ autocmd BufNewFile,BufRead \ **/.dotfiles/sh/**,.shinit,.shrc,.xinitrc,/etc/default/* \ let b:is_posix = 1 | \ setlocal filetype=sh + +" If we determined something is b:is_kornshell, tack on b:is_ksh as well so we +" can still tease out what is actually a kornshell script after sh.vim is done +" changing our options for us; it conflates POSIX with Korn shell. +if exists('b:is_kornshell') + let b:is_ksh = 1 +endif |