From 0ec73d6242582783ae1a9d457dfe04a5bc852199 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 30 Oct 2017 11:48:42 +1300 Subject: 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. --- vim/ftplugin/perl.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 vim/ftplugin/perl.vim (limited to 'vim/ftplugin/perl.vim') 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 pc :exe "!perl -c " . shellescape(expand("%")) +" Run perlcritic on the file for the current buffer +nnoremap pl :exe "!perlcritic " . shellescape(expand("%")) +" Run the current buffer through perltidy +nnoremap pt :%!perltidy -- cgit v1.2.3