diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-15 09:39:04 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-15 09:39:04 +1200 |
commit | 7560d40639575a9d4bb904b700205b348d9d6e7c (patch) | |
tree | 6a1a69e7c8f327f5ec9f616fe04efc14d7202088 /vim/after/syntax | |
parent | Move Perl boilerplate generation to autoload (diff) | |
download | dotfiles-7560d40639575a9d4bb904b700205b348d9d6e7c.tar.gz dotfiles-7560d40639575a9d4bb904b700205b348d9d6e7c.zip |
Unset g:is_posix when no longer needed
Diffstat (limited to 'vim/after/syntax')
-rw-r--r-- | vim/after/syntax/sh.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim index 00f95fc0..977ee2cb 100644 --- a/vim/after/syntax/sh.vim +++ b/vim/after/syntax/sh.vim @@ -4,6 +4,13 @@ if &compatible || v:version < 700 finish 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 + " 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 " shell type (which I don't care about). |