From ccabcefafef457e7d488ef2ee1b27b4b56e03267 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Nov 2017 00:32:04 +1300 Subject: Break long lines in check/lint/tidy mappings --- vim/ftplugin/html.vim | 6 ++++-- vim/ftplugin/perl.vim | 11 ++++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) (limited to 'vim/ftplugin') diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim index f16bc8cf..a56ae778 100644 --- a/vim/ftplugin/html.vim +++ b/vim/ftplugin/html.vim @@ -1,5 +1,6 @@ " Run `tidy -errors -quiet` over buffer -nnoremap c :write !tidy -errors -quiet +nnoremap c + \ :write !tidy -errors -quiet " Make a bare URL into a link to itself function! s:UrlLink() @@ -16,4 +17,5 @@ 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 38c3308b..2ea4676b 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -1,6 +1,11 @@ " Run `perl -c` over buffer -nnoremap c :write !perl -c +nnoremap c + \ :write !perl -c + " Run `perlcritic` over buffer -nnoremap l :write !perlcritic +nnoremap l + \ :write !perlcritic + " Filter buffer through `perltidy` -nnoremap t :%!perltidy +nnoremap t + \ :%!perltidy -- cgit v1.2.3