From 935fc4c3003110cad368e34a1eccfe500133f105 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 17 May 2019 21:05:06 +1200 Subject: Split long lines with version/patch check pattern --- vim/after/ftplugin/sh.vim | 3 ++- vim/compiler/bash.vim | 3 ++- vim/compiler/ksh.vim | 3 ++- vim/compiler/perlcritic.vim | 3 ++- vim/compiler/php.vim | 3 ++- vim/compiler/sh.vim | 3 ++- vim/compiler/shellcheck.vim | 3 ++- vim/compiler/vint.vim | 3 ++- vim/compiler/zsh.vim | 3 ++- 9 files changed, 18 insertions(+), 9 deletions(-) diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 7ded5134..e7bd21dc 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -24,7 +24,8 @@ let b:undo_ftplugin .= '|unlet b:current_compiler b:sh_check_compiler' " Resort to g:is_posix for correct syntax on older runtime files " 8.1.257 updated the runtime files to include a fix for this if exists('b:is_posix') - \ && (v:version < 800 || v:version == 800 && !has('patch257')) + \ && (v:version < 800 + \ || v:version == 800 && !has('patch257')) let is_posix = 1 endif diff --git a/vim/compiler/bash.vim b/vim/compiler/bash.vim index ca418c24..13271e2b 100644 --- a/vim/compiler/bash.vim +++ b/vim/compiler/bash.vim @@ -9,7 +9,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') CompilerSet makeprg=bash\ -n\ --\ %:S else CompilerSet makeprg=bash\ -n\ --\ % diff --git a/vim/compiler/ksh.vim b/vim/compiler/ksh.vim index 759aae02..5dbff5a1 100644 --- a/vim/compiler/ksh.vim +++ b/vim/compiler/ksh.vim @@ -9,7 +9,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') CompilerSet makeprg=ksh\ -n\ --\ %:S else CompilerSet makeprg=ksh\ -n\ --\ % diff --git a/vim/compiler/perlcritic.vim b/vim/compiler/perlcritic.vim index 341fc9c8..b89ee76b 100644 --- a/vim/compiler/perlcritic.vim +++ b/vim/compiler/perlcritic.vim @@ -9,7 +9,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') CompilerSet makeprg=perlcritic\ --verbose\ 1\ --\ %:S else CompilerSet makeprg=perlcritic\ --verbose\ 1\ --\ % diff --git a/vim/compiler/php.vim b/vim/compiler/php.vim index e2bd0b59..be4283ef 100644 --- a/vim/compiler/php.vim +++ b/vim/compiler/php.vim @@ -9,7 +9,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') CompilerSet makeprg=php\ -lq\ -f\ %:S else CompilerSet makeprg=php\ -lq\ -f\ % diff --git a/vim/compiler/sh.vim b/vim/compiler/sh.vim index d4134e6e..5e7bc3ba 100644 --- a/vim/compiler/sh.vim +++ b/vim/compiler/sh.vim @@ -9,7 +9,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') CompilerSet makeprg=sh\ -n\ --\ %:S else CompilerSet makeprg=sh\ -n\ --\ % diff --git a/vim/compiler/shellcheck.vim b/vim/compiler/shellcheck.vim index c2cf04de..fa5db235 100644 --- a/vim/compiler/shellcheck.vim +++ b/vim/compiler/shellcheck.vim @@ -19,7 +19,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') execute s:set . '\ --\ %:S' else execute s:set . '\ --\ %' diff --git a/vim/compiler/vint.vim b/vim/compiler/vint.vim index e0d0b076..35819ae3 100644 --- a/vim/compiler/vint.vim +++ b/vim/compiler/vint.vim @@ -9,7 +9,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') CompilerSet makeprg=vint\ --\ %:S else CompilerSet makeprg=vint\ --\ % diff --git a/vim/compiler/zsh.vim b/vim/compiler/zsh.vim index 4fc5f30e..ad82cc3b 100644 --- a/vim/compiler/zsh.vim +++ b/vim/compiler/zsh.vim @@ -9,7 +9,8 @@ endif " 7.4.191 is the earliest version with the :S file name modifier, which we " really should use if we can -if v:version >= 704 || v:version == 704 && has('patch191') +if v:version >= 704 + \ || v:version == 704 && has('patch191') CompilerSet makeprg=zsh\ -n\ --\ %:S else CompilerSet makeprg=zsh\ -n\ --\ % -- cgit v1.2.3