aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-01-03 03:08:47 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-01-03 03:08:47 +1300
commitd8ac5f14ab1e83583db8b3aeba4288792cd8ed4e (patch)
treecbcdbe449b2b044b906fa7c61581c23dfbe9ba5a
parentCorrect wildcard escaping in option esc function (diff)
downloaddotfiles-d8ac5f14ab1e83583db8b3aeba4288792cd8ed4e.tar.gz
dotfiles-d8ac5f14ab1e83583db8b3aeba4288792cd8ed4e.zip
Rename HTML tidy function
-rw-r--r--vim/after/ftplugin/html.vim2
-rw-r--r--vim/autoload/html.vim2
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)