diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-01 10:06:06 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-11-01 10:06:27 +1300 |
commit | f34d267fc1c7ffd6269dac5dfaf7375808b628c7 (patch) | |
tree | 00c54806003ea8f10bf95abe9e38aca0e47e7770 | |
parent | Merge branch 'hotfix/v1.71.2' (diff) | |
download | dotfiles-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
-rw-r--r-- | vim/after/syntax/sh.vim | 2 |
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 |