diff options
-rw-r--r-- | vim/after/ftplugin/html.vim | 2 | ||||
-rw-r--r-- | vim/autoload/html.vim | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim index b4e55462..7ffb63ac 100644 --- a/vim/after/ftplugin/html.vim +++ b/vim/after/ftplugin/html.vim @@ -19,7 +19,7 @@ let b:undo_ftplugin .= '|unlet b:current_compiler' " 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> +nnoremap <buffer> <Leader>= :<C-U>call html#Tidy()<CR> let b:undo_ftplugin .= '|nunmap <buffer> <Leader>=' " Set up hooks for timestamp updating diff --git a/vim/autoload/html.vim b/vim/autoload/html.vim index 72f29bb4..83755fe6 100644 --- a/vim/autoload/html.vim +++ b/vim/autoload/html.vim @@ -15,7 +15,7 @@ function! html#UrlLink() abort endfunction " Tidy the whole buffer -function! html#TidyBuffer() abort +function! html#Tidy() abort let view = winsaveview() %!tidy -quiet call winrestview(view) |