From f34d267fc1c7ffd6269dac5dfaf7375808b628c7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 1 Nov 2018 10:06:06 +1300 Subject: 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 --- vim/after/syntax/sh.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim') 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 -- cgit v1.2.3