aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/sh.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-17 15:59:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-17 15:59:39 +1200
commita9e59520d7efade3aeed9977cc64b32004af7dcb (patch)
tree60e323e2f45c2964966e366ea1ce47d38d945151 /vim/after/ftplugin/sh.vim
parentMerge branch 'release/v1.32.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-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.vim5
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