aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/perl.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r--vim/ftplugin/perl.vim17
1 files changed, 6 insertions, 11 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 310ffe7e..eeed2bb7 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -1,11 +1,6 @@
-" External commands for Perl files
-if exists('*shellescape')
-
- " Run perl -c on file for the current buffer
- nnoremap <LocalLeader>pc :execute "!perl -c " . shellescape(expand("%"))<CR>
- " Run perlcritic on the file for the current buffer
- nnoremap <LocalLeader>pl :execute "!perlcritic " . shellescape(expand("%"))<CR>
- " Run the current buffer through perltidy
- nnoremap <LocalLeader>pt :%!perltidy<CR>
-
-endif
+" Run perl -c on file for the current buffer
+nnoremap <LocalLeader>pc :write !perl -c<CR>
+" Run perlcritic on the file for the current buffer
+nnoremap <LocalLeader>pl :write !perlcritic<CR>
+" Run the current buffer through perltidy
+nnoremap <LocalLeader>pt :%!perltidy<CR>