From 381812518e1625ffa3d000332e5198b5ac219f73 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 3 Nov 2017 22:52:46 +1300 Subject: Use full ':execute' not just ':exe' in VimL We should probably avoid this sort of abbreviation in scripts. --- vim/ftplugin/html.vim | 2 +- vim/ftplugin/perl.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'vim/ftplugin') 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 v :exe :call HTMLTidy() + nnoremap v :execute :call HTMLTidy() 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 pc :exe "!perl -c " . shellescape(expand("%")) + nnoremap pc :execute "!perl -c " . shellescape(expand("%")) " Run perlcritic on the file for the current buffer - nnoremap pl :exe "!perlcritic " . shellescape(expand("%")) + nnoremap pl :execute "!perlcritic " . shellescape(expand("%")) " Run the current buffer through perltidy nnoremap pt :%!perltidy -- cgit v1.2.3