diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-17 22:48:51 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-17 22:48:51 +1200 |
commit | ca42611aec7e22165f01bb1c89016d163bdcd455 (patch) | |
tree | 9756f4291a7597a0effa3fb6d4f9643094ba3400 | |
parent | Spin shebang_create_exec.vim into own distribution (diff) | |
download | dotfiles-ca42611aec7e22165f01bb1c89016d163bdcd455.tar.gz dotfiles-ca42611aec7e22165f01bb1c89016d163bdcd455.zip |
Check b:is_posix existence not value
-rw-r--r-- | vim/after/ftplugin/sh.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 88254ea6..475527b9 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -27,7 +27,8 @@ let b:undo_ftplugin .= '|unlet b:current_compiler b:sh_check_compiler' \ . '|setlocal errorformat< makeprg<' " Resort to g:is_posix for correct syntax on older runtime files -if b:is_posix && (v:version < 800 || v:version == 800 && !has('patch257')) +if exists('b:is_posix') + \ && (v:version < 800 || v:version == 800 && !has('patch257')) let g:is_posix = 1 endif |