aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-15 10:52:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-15 10:52:00 +1200
commita26820130c1a71e217bec8731285463287f92665 (patch)
treebb19e9c6cf42883496e58f48d6c0cbc80ac9d12e
parent1a35046d18e04ed2306687e4407f0f0899e1f429 (diff)
downloaddotfiles-a26820130c1a71e217bec8731285463287f92665.tar.gz
Simplify g:is_posix unset, add g:is_kornshell
-rw-r--r--vim/after/syntax/sh.vim5
1 files changed, 1 insertions, 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