aboutsummaryrefslogtreecommitdiff
path: root/vim/compiler/perlcritic.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/compiler/perlcritic.vim')
-rw-r--r--vim/compiler/perlcritic.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/compiler/perlcritic.vim b/vim/compiler/perlcritic.vim
new file mode 100644
index 00000000..381e0df3
--- /dev/null
+++ b/vim/compiler/perlcritic.vim
@@ -0,0 +1,11 @@
+if exists('current_compiler')
+ finish
+endif
+let g:current_compiler = 'tidy'
+
+if exists(':CompilerSet') != 2
+ command -nargs=* CompilerSet setlocal <args>
+endif
+
+CompilerSet makeprg=perlcritic\ --verbose\ 1\ %:S
+CompilerSet errorformat=%f:%l:%c:%m