From a26820130c1a71e217bec8731285463287f92665 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 15 Aug 2018 10:52:00 +1200 Subject: Simplify g:is_posix unset, add g:is_kornshell --- vim/after/syntax/sh.vim | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index 977ee2cb..95b4517d 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -6,10 +6,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') - \ && (v:version < 800 || v:version == 800 && !has('patch257')) - unlet g:is_posix -endif +unlet! g:is_posix g:is_kornshell " 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 -- cgit v1.2.3