summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin/perl.vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-05-17 20:26:28 -0500
committerJesse Luehrs <doy@tozt.net>2010-05-17 20:26:28 -0500
commit958fffa0f3759c53332a5583091ced7332451261 (patch)
tree14ad35f880c96a0020de623a506b8b72b9610c59 /vim/ftplugin/perl.vim
parent5120ec42e296a04fae68ca4dffea050b288a185c (diff)
downloadconf-958fffa0f3759c53332a5583091ced7332451261.tar.gz
conf-958fffa0f3759c53332a5583091ced7332451261.zip
use plackup as the makeprg for psgi files
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r--vim/ftplugin/perl.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 0f6e968..46e88f0 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -1,6 +1,10 @@
" :make does a syntax check
-setlocal makeprg=$VIMRUNTIME/tools/efm_perl.pl\ -c\ %\ $*
-setlocal errorformat=%f:%l:%m
+if expand("%:e") == "psgi"
+ exe 'setlocal makeprg=plackup\ -Ilib\ -a\ ' . expand("%")
+else
+ setlocal makeprg=$VIMRUNTIME/tools/efm_perl.pl\ -c\ %\ $*
+ setlocal errorformat=%f:%l:%m
+endif
" look up words in perldoc rather than man for K
function! s:perldoc(word)