aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 11:48:42 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 11:48:42 +1300
commit0ec73d6242582783ae1a9d457dfe04a5bc852199 (patch)
tree1eb9a1ed2320e5ecdd2cf49659c59f241f2d28a7 /vim/ftplugin/perl.vim
parent2f2cd9d86dbe39845dfd33d07e245505a02e8b5a (diff)
downloaddotfiles-0ec73d6242582783ae1a9d457dfe04a5bc852199.tar.gz
dotfiles-0ec73d6242582783ae1a9d457dfe04a5bc852199.zip
Move vim/after/ftplugin files into vim/ftplugin
None of the settings in here need to be run after the core configuration files are loaded, so I'll put them in a slightly more accessible or logical place. This adds a new target `install-vim-ftplugin`, and makes that a prerequisite of the `install-vim` target.
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r--vim/ftplugin/perl.vim6
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>