diff options
-rw-r--r-- | vim/after/ftplugin/html.vim | 5 |
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>=' |