summaryrefslogtreecommitdiff
path: root/vim/compiler
diff options
context:
space:
mode:
authorNick Shipp <nick@shipp.ninja>2017-02-14 08:41:16 -0500
committerNick Shipp <nick@shipp.ninja>2017-02-14 08:41:16 -0500
commit24a605577c8e09a75f8f717f9df1bdc6c8dd8ec3 (patch)
tree794db72af4e1ddf41cff2d1f6371b27103562d69 /vim/compiler
initial commit
Diffstat (limited to 'vim/compiler')
-rw-r--r--vim/compiler/perlcritic.vim23
1 files changed, 23 insertions, 0 deletions
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 <speshak@gmail.com>
+" Last Change: 2017 Feb 10
+
+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
+
+" 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