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 | |
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')
-rw-r--r-- | vim/ftplugin/html.vim | 2 | ||||
-rw-r--r-- | vim/ftplugin/perl.vim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim index 5505dbaa..d705bd71 100644 --- a/vim/ftplugin/html.vim +++ b/vim/ftplugin/html.vim @@ -3,7 +3,7 @@ if exists('*shellescape') function s:HTMLTidy() execute '!tidy -eq -utf8 ' . shellescape(expand('%')) endfunction - nnoremap <LocalLeader>v :exe :<C-U>call <SID>HTMLTidy()<CR> + nnoremap <LocalLeader>v :execute :<C-U>call <SID>HTMLTidy()<CR> endif " Make a bare URL into a link to itself 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> |