diff options
-rw-r--r-- | vim/after/syntax/sh.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index 95b4517d..5c15be61 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -6,7 +6,9 @@ endif " Remove g:is_posix if we resorted to it in order to get correct POSIX sh " highlighting with older Vim runtime files -unlet! g:is_posix g:is_kornshell +if exists('g:is_posix') + unlet g:is_posix g:is_kornshell +endif " If we know we have another shell type, clear away the others completely, now " that core syntax/sh.vim is done prodding /bin/sh to determine the system |