diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-11 14:20:09 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-11 14:20:09 +1300 |
commit | 6768b07d524a3e2e635dec0a2935ec50a15508b4 (patch) | |
tree | e1d4a1f74730bedcfa5cbe02ad5cad5d776459ed /vim/after/ftplugin/sh.vim | |
parent | Adjust shell type detection rules (diff) | |
download | dotfiles-6768b07d524a3e2e635dec0a2935ec50a15508b4.tar.gz dotfiles-6768b07d524a3e2e635dec0a2935ec50a15508b4.zip |
Make POSIX default for shell more specific
Diffstat (limited to 'vim/after/ftplugin/sh.vim')
-rw-r--r-- | vim/after/ftplugin/sh.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index b6e5d2f6..c9e0297c 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -1,5 +1,7 @@ -" Assume POSIX, I never write Bourne -let g:is_posix=1 +" If the file is not already tagged as either ksh nor bash, assume POSIX shell +if !exists('g:is_kornshell') && !exists('g:is_bash') + let g:is_posix = 1 +endif " Use han(1df) as a man(1) wrapper for Bash files if available if exists('b:is_bash') && executable('han') |