aboutsummaryrefslogtreecommitdiff
path: root/vim/after
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-01 10:06:06 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-01 10:06:27 +1300
commitf34d267fc1c7ffd6269dac5dfaf7375808b628c7 (patch)
tree00c54806003ea8f10bf95abe9e38aca0e47e7770 /vim/after
parentMerge branch 'hotfix/v1.71.2' (diff)
downloaddotfiles-f34d267fc1c7ffd6269dac5dfaf7375808b628c7.tar.gz
dotfiles-f34d267fc1c7ffd6269dac5dfaf7375808b628c7.zip
Ignore unset variables in sh.vim clear script
Error message is: Error detected while processing /home/tom/.vim/after/syntax/sh.vim: line 10: E108: No such variable: "g:is_kornshell" Press ENTER or type command to continue
Diffstat (limited to 'vim/after')
-rw-r--r--vim/after/syntax/sh.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim
index 5c15be61..f02f30f5 100644
--- a/vim/after/syntax/sh.vim
+++ b/vim/after/syntax/sh.vim
@@ -7,7 +7,7 @@ endif
" Remove g:is_posix if we resorted to it in order to get correct POSIX sh
" highlighting with older Vim runtime files
if exists('g:is_posix')
- unlet g:is_posix g:is_kornshell
+ unlet! g:is_posix g:is_kornshell
endif
" If we know we have another shell type, clear away the others completely, now