diff options
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/ftplugin/perl.vim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim index 866316f2..e06bf467 100644 --- a/vim/after/ftplugin/perl.vim +++ b/vim/after/ftplugin/perl.vim @@ -1,9 +1,7 @@ -" Run perl -c on the current buffer -nnoremap <leader>pc :!perl -c %<CR> - -" Run perlcritic over the current buffer -nnoremap <leader>pl :!perlcritic %<CR> - +" Run perl -c on file for the current buffer +nnoremap <leader>pc :exe "!perl -c " . shellescape(expand("%"))<CR> +" Run perlcritic on the file for the current buffer +nnoremap <leader>pl :exe "!perlcritic " . shellescape(expand("%"))<CR> " Run the current buffer through perltidy nnoremap <leader>pt :%!perltidy<CR> |