From 703c63113d6e089136259ab077422b51f636309a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Nov 2017 00:31:04 +1300 Subject: Make all lint/check/tidy maps local and silent That is, apply and to each of them, to make them only apply to the current buffer and to prevent them from echoing the command they're running. --- vim/ftplugin/html.vim | 4 ++-- vim/ftplugin/perl.vim | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'vim/ftplugin') diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim index 520e4fe2..f16bc8cf 100644 --- a/vim/ftplugin/html.vim +++ b/vim/ftplugin/html.vim @@ -1,5 +1,5 @@ " Run `tidy -errors -quiet` over buffer -nnoremap c :write !tidy -errors -quiet -utf8 +nnoremap c :write !tidy -errors -quiet " Make a bare URL into a link to itself function! s:UrlLink() @@ -16,4 +16,4 @@ function! s:UrlLink() normal! a endfunction -nnoremap r :call UrlLink() +nnoremap r :call UrlLink() diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim index 3355227e..38c3308b 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -1,6 +1,6 @@ " Run `perl -c` over buffer -nnoremap pc :write !perl -c +nnoremap c :write !perl -c " Run `perlcritic` over buffer -nnoremap pl :write !perlcritic +nnoremap l :write !perlcritic " Filter buffer through `perltidy` -nnoremap pt :%!perltidy +nnoremap t :%!perltidy -- cgit v1.2.3