aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-01-06 15:25:01 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-01-06 15:25:01 +1300
commit45a3e5014800bbf20d1b0167a9dc28981b644267 (patch)
treeb4de9da74f651df6e90f17587aaa9f5cbe0e52c9 /vim
parentAdd test to 'keywordprg' setting for Vim help (diff)
downloaddotfiles-45a3e5014800bbf20d1b0167a9dc28981b644267.tar.gz
dotfiles-45a3e5014800bbf20d1b0167a9dc28981b644267.zip
Clarify a comment for HTML indentation
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/html.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim
index c4f2e35e..0dff879f 100644
--- a/vim/after/ftplugin/html.vim
+++ b/vim/after/ftplugin/html.vim
@@ -9,8 +9,9 @@ let b:undo_ftplugin .= '|unlet b:current_compiler'
\ . '|setlocal errorformat< makeprg<'
" tidy(1) copes fine with formatting an entire document, but not just part of
-" it; we map \= to do the former, but don't actually set 'equalprg', falling
-" back on the good-enough built-in Vim indentation behavior.
+" it; we map \= to do the former, but don't actually set 'equalprg' for the
+" latter, instead falling back on the good-enough built-in Vim indentation
+" behavior
nnoremap <buffer> <Leader>= :<C-U>call html#TidyBuffer()<CR>
let b:undo_ftplugin .= '|nunmap <buffer> <Leader>='