From 0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 03:35:43 +1200 Subject: Refine version check for :compiler scripts The %:S modifier for shell escaping was added in 7.4.191, and the nicer syntax for checking patch levels not much later in 7.4.237. Bring the minimum version of Vim for the compiler scripts down just a bit, since it's not too much more reading and can still stay on one line. --- vim/compiler/bash.vim | 2 +- vim/compiler/ksh.vim | 2 +- vim/compiler/perlcritic.vim | 2 +- vim/compiler/php.vim | 2 +- vim/compiler/sh.vim | 2 +- vim/compiler/shellcheck.vim | 2 +- vim/compiler/vint.vim | 2 +- vim/compiler/zsh.vim | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/vim/compiler/bash.vim b/vim/compiler/bash.vim index aca87eb7..2b69d7a6 100644 --- a/vim/compiler/bash.vim +++ b/vim/compiler/bash.vim @@ -1,5 +1,5 @@ " :compiler support for GNU Bash syntax checking with `bash -n` -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'bash' diff --git a/vim/compiler/ksh.vim b/vim/compiler/ksh.vim index 9ee21748..b8ea51a8 100644 --- a/vim/compiler/ksh.vim +++ b/vim/compiler/ksh.vim @@ -1,5 +1,5 @@ " :compiler support for Korn shell syntax checking with `ksh -n` -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'ksh' diff --git a/vim/compiler/perlcritic.vim b/vim/compiler/perlcritic.vim index f0d100b6..6738ad5b 100644 --- a/vim/compiler/perlcritic.vim +++ b/vim/compiler/perlcritic.vim @@ -1,6 +1,6 @@ " :compiler support for Perl::Critic " -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'perlcritic' diff --git a/vim/compiler/php.vim b/vim/compiler/php.vim index c0c626ec..aee0de50 100644 --- a/vim/compiler/php.vim +++ b/vim/compiler/php.vim @@ -1,5 +1,5 @@ " :compiler support for PHP syntax checking with `php -l` -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'php' diff --git a/vim/compiler/sh.vim b/vim/compiler/sh.vim index 6abb715e..1f531af2 100644 --- a/vim/compiler/sh.vim +++ b/vim/compiler/sh.vim @@ -1,5 +1,5 @@ " :compiler support for POSIX sh syntax checking with `sh -n` -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'sh' diff --git a/vim/compiler/shellcheck.vim b/vim/compiler/shellcheck.vim index f440a23d..004ad369 100644 --- a/vim/compiler/shellcheck.vim +++ b/vim/compiler/shellcheck.vim @@ -1,6 +1,6 @@ " :compiler support for shell script linting with ShellCheck " -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'shellcheck' diff --git a/vim/compiler/vint.vim b/vim/compiler/vint.vim index 8cd35cf1..216d8602 100644 --- a/vim/compiler/vint.vim +++ b/vim/compiler/vint.vim @@ -1,6 +1,6 @@ " :compiler support for Vim script linting with Vint " -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'vimlint' diff --git a/vim/compiler/zsh.vim b/vim/compiler/zsh.vim index bb8802c9..1ed48412 100644 --- a/vim/compiler/zsh.vim +++ b/vim/compiler/zsh.vim @@ -1,5 +1,5 @@ " :compiler support for Z Shell syntax checking with `zsh -n` -if exists('current_compiler') || &compatible || v:version < 800 +if exists('current_compiler') || &compatible || !has('patch-7.4.191') finish endif let current_compiler = 'zsh' -- cgit v1.2.3 From 06bc99779f7d54d63cfa348b4a0170d5047b1a1b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 03:42:03 +1200 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index be2c4744..c785d1ca 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v5.1.0 -Tue May 28 15:25:37 UTC 2019 +tejr dotfiles v5.2.0 +Tue May 28 15:42:03 UTC 2019 -- cgit v1.2.3