diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 22:52:46 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-03 22:52:46 +1300 |
commit | 381812518e1625ffa3d000332e5198b5ac219f73 (patch) | |
tree | 653e4842f47dbcb005a4f24f2cfeed521b99452a /vim/ftplugin/perl.vim | |
parent | Check for availability of Vim shellescape() (diff) | |
download | dotfiles-381812518e1625ffa3d000332e5198b5ac219f73.tar.gz dotfiles-381812518e1625ffa3d000332e5198b5ac219f73.zip |
Use full ':execute' not just ':exe' in VimL
We should probably avoid this sort of abbreviation in scripts.
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r-- | vim/ftplugin/perl.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim index c4923051..310ffe7e 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -2,9 +2,9 @@ if exists('*shellescape') " Run perl -c on file for the current buffer - nnoremap <LocalLeader>pc :exe "!perl -c " . shellescape(expand("%"))<CR> + nnoremap <LocalLeader>pc :execute "!perl -c " . shellescape(expand("%"))<CR> " Run perlcritic on the file for the current buffer - nnoremap <LocalLeader>pl :exe "!perlcritic " . shellescape(expand("%"))<CR> + nnoremap <LocalLeader>pl :execute "!perlcritic " . shellescape(expand("%"))<CR> " Run the current buffer through perltidy nnoremap <LocalLeader>pt :%!perltidy<CR> |