diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-22 11:38:59 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-22 11:38:59 +1200 |
commit | 8a78723bd3146fe9acc1289667cfb12587ccdab3 (patch) | |
tree | f3d8095a0c57de104505227c51a9f7daab8a6a76 /vim | |
parent | Add load guard to bindzone.vim syntax extensions (diff) | |
download | dotfiles-8a78723bd3146fe9acc1289667cfb12587ccdab3.tar.gz dotfiles-8a78723bd3146fe9acc1289667cfb12587ccdab3.zip |
Test for g:is_posix existence before purge
Diffstat (limited to 'vim')
-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 |