aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 00:32:04 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 00:37:18 +1300
commitccabcefafef457e7d488ef2ee1b27b4b56e03267 (patch)
tree3e0c84ed69443ba77a37372bf98e84afa901917e
parentMake all lint/check/tidy maps local and silent (diff)
downloaddotfiles-ccabcefafef457e7d488ef2ee1b27b4b56e03267.tar.gz
dotfiles-ccabcefafef457e7d488ef2ee1b27b4b56e03267.zip
Break long lines in check/lint/tidy mappings
-rw-r--r--vim/ftplugin/html.vim6
-rw-r--r--vim/ftplugin/perl.vim11
2 files changed, 12 insertions, 5 deletions
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 <buffer> <silent> <LocalLeader>c :write !tidy -errors -quiet<CR>
+nnoremap <buffer> <silent> <LocalLeader>c
+ \ :write !tidy -errors -quiet<CR>
" Make a bare URL into a link to itself
function! s:UrlLink()
@@ -16,4 +17,5 @@ function! s:UrlLink()
normal! a</a>
endfunction
-nnoremap <buffer> <silent> <LocalLeader>r :<C-U>call <SID>UrlLink()<CR>
+nnoremap <buffer> <silent> <LocalLeader>r
+ \ :<C-U>call <SID>UrlLink()<CR>
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 <buffer> <silent> <LocalLeader>c :write !perl -c<CR>
+nnoremap <buffer> <silent> <LocalLeader>c
+ \ :write !perl -c<CR>
+
" Run `perlcritic` over buffer
-nnoremap <buffer> <silent> <LocalLeader>l :write !perlcritic<CR>
+nnoremap <buffer> <silent> <LocalLeader>l
+ \ :write !perlcritic<CR>
+
" Filter buffer through `perltidy`
-nnoremap <buffer> <silent> <LocalLeader>t :%!perltidy<CR>
+nnoremap <buffer> <silent> <LocalLeader>t
+ \ :%!perltidy<CR>