aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 00:31:04 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 00:36:46 +1300
commit703c63113d6e089136259ab077422b51f636309a (patch)
treea15fc24d18ebfa8790024036fc7615792b124298 /vim/ftplugin/html.vim
parentImprove comments on check/lint/tidy maps (diff)
downloaddotfiles-703c63113d6e089136259ab077422b51f636309a.tar.gz
dotfiles-703c63113d6e089136259ab077422b51f636309a.zip
Make all lint/check/tidy maps local and silent
That is, apply <buffer> and <silent> to each of them, to make them only apply to the current buffer and to prevent them from echoing the command they're running.
Diffstat (limited to 'vim/ftplugin/html.vim')
-rw-r--r--vim/ftplugin/html.vim4
1 files changed, 2 insertions, 2 deletions
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 <LocalLeader>c :write !tidy -errors -quiet -utf8<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 +16,4 @@ function! s:UrlLink()
normal! a</a>
endfunction
-nnoremap <silent> <LocalLeader>r :<C-U>call <SID>UrlLink()<CR>
+nnoremap <buffer> <silent> <LocalLeader>r :<C-U>call <SID>UrlLink()<CR>