diff options
Diffstat (limited to 'vim/perlcritic.vim')
-rw-r--r-- | vim/perlcritic.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vim/perlcritic.vim b/vim/perlcritic.vim new file mode 100644 index 0000000..16a75b1 --- /dev/null +++ b/vim/perlcritic.vim @@ -0,0 +1,22 @@ +" Vim Compiler File +" Compiler: perlcritic +" Maintainer: Scott Peshak <speshak@gmail.com> +" Last Change: 2006 Dec 19 + +if exists("current_compiler") + finish +endif +let current_compiler = "perlcritic" + +if exists(":CompilerSet") != 2 + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo-=C + +CompilerSet makeprg=perlcritic\ -verbose\ 1\ -2\ % +CompilerSet errorformat=%f:%l:%c:%m + +let &cpo = s:cpo_save +unlet s:cpo_save |