From 24a605577c8e09a75f8f717f9df1bdc6c8dd8ec3 Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Tue, 14 Feb 2017 08:41:16 -0500 Subject: initial commit --- vim/compiler/perlcritic.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vim/compiler/perlcritic.vim (limited to 'vim/compiler') diff --git a/vim/compiler/perlcritic.vim b/vim/compiler/perlcritic.vim new file mode 100644 index 0000000..b42a8e7 --- /dev/null +++ b/vim/compiler/perlcritic.vim @@ -0,0 +1,23 @@ +" Vim Compiler File +" Compiler: perlcritic +" Maintainer: Scott Peshak +" Last Change: 2017 Feb 10 + +if exists("current_compiler") +finish +endif +let current_compiler = "perlcritic" + +if exists(":CompilerSet") != 2 +command -nargs=* CompilerSet setlocal +endif + +let s:cpo_save = &cpo +set cpo-=C + +" nshp - bump severity up to 4, add --quiet +CompilerSet makeprg=perlcritic\ -verbose\ 1\ -4\ --quiet\ % +CompilerSet errorformat=%f:%l:%c:%m + +let &cpo = s:cpo_save +unlet s:cpo_save -- cgit v1.2.3-70-g09d2