aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/perl.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim
new file mode 100644
index 00000000..866316f2
--- /dev/null
+++ b/vim/after/ftplugin/perl.vim
@@ -0,0 +1,9 @@
+" 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 the current buffer through perltidy
+nnoremap <leader>pt :%!perltidy<CR>
+