diff options
Diffstat (limited to 'compiler/lacheck.vim')
-rw-r--r-- | compiler/lacheck.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/compiler/lacheck.vim b/compiler/lacheck.vim new file mode 100644 index 00000000..b8b4c84a --- /dev/null +++ b/compiler/lacheck.vim @@ -0,0 +1,20 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + +if exists('current_compiler') | finish | endif +let current_compiler = 'lacheck' + +" Older Vim always used :setlocal +if exists(':CompilerSet') != 2 + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo&vim + +CompilerSet makeprg=lacheck\ %:S +CompilerSet errorformat="%f",\ line\ %l:\ %m + +let &cpo = s:cpo_save +unlet s:cpo_save + +endif |