diff options
-rw-r--r-- | vim/ftplugin/html.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim index 309b7132..b305a223 100644 --- a/vim/ftplugin/html.vim +++ b/vim/ftplugin/html.vim @@ -1,5 +1,8 @@ " Run tidy -eq -utf8 on file for the current buffer -nnoremap <LocalLeader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR> +function s:HTMLTidy() + execute '!tidy -eq -utf8 ' . shellescape(expand('%')) +endfunction +nnoremap <LocalLeader>v :exe :<C-U>call <SID>HTMLTidy()<CR> " Make a bare URL into a link to itself function! s:UrlLink() |