diff options
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r-- | vim/ftplugin/perl.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim new file mode 100644 index 00000000..dad2ce35 --- /dev/null +++ b/vim/ftplugin/perl.vim @@ -0,0 +1,6 @@ +" 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> |