aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-22 11:38:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-22 11:38:59 +1200
commit8a78723bd3146fe9acc1289667cfb12587ccdab3 (patch)
treef3d8095a0c57de104505227c51a9f7daab8a6a76 /vim/after
parente56640efe743b45077f1580caa23a0f934b49770 (diff)
downloaddotfiles-8a78723bd3146fe9acc1289667cfb12587ccdab3.tar.gz
dotfiles-8a78723bd3146fe9acc1289667cfb12587ccdab3.zip
Test for g:is_posix existence before purge
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/syntax/sh.vim4
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