diff options
Diffstat (limited to 'vim/compiler/vint.vim')
-rw-r--r-- | vim/compiler/vint.vim | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/vim/compiler/vint.vim b/vim/compiler/vint.vim index 35819ae3..8cd35cf1 100644 --- a/vim/compiler/vint.vim +++ b/vim/compiler/vint.vim @@ -1,18 +1,9 @@ -if exists('current_compiler') +" :compiler support for Vim script linting with Vint +" <https://github.com/Kuniwak/vint> +if exists('current_compiler') || &compatible || v:version < 800 finish endif let current_compiler = 'vimlint' -if exists(':CompilerSet') != 2 - command -nargs=* CompilerSet setlocal <args> -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') - CompilerSet makeprg=vint\ --\ %:S -else - CompilerSet makeprg=vint\ --\ % -endif +CompilerSet makeprg=vint\ --\ %:S CompilerSet errorformat=%f:%l:%c:\ %m |