diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-17 15:59:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-17 15:59:39 +1200 |
commit | a9e59520d7efade3aeed9977cc64b32004af7dcb (patch) | |
tree | 60e323e2f45c2964966e366ea1ce47d38d945151 /vim/after/ftplugin/sh.vim | |
parent | Merge branch 'release/v1.32.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-469d8eaa9aa1e2ae36db2875d848556adf6e232c.tar.gz (sig) dotfiles-469d8eaa9aa1e2ae36db2875d848556adf6e232c.zip |
Merge branch 'release/v1.33.0'v1.33.0
* release/v1.33.0:
Bump VERSION
Add handling for older sh.vim syntax g:is_posix
Add my own ftplugin for awk
Don't quote first and last lines of range if blank
Diffstat (limited to 'vim/after/ftplugin/sh.vim')
-rw-r--r-- | vim/after/ftplugin/sh.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 41b1796f..88254ea6 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -26,6 +26,11 @@ execute 'compiler '.b:sh_check_compiler 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')) + let g:is_posix = 1 +endif + " Stop here if the user doesn't want ftplugin mappings if exists('g:no_plugin_maps') || exists('g:no_sh_maps') finish |