From acc0fabe0f80704bb539d4c0d62f58526fbf96a3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 17 Jun 2015 13:18:35 +1200 Subject: Add tidy(1) function with \v --- vim/after/ftplugin/html.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vim/after') diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim index c7bdfc7d..7d54b346 100644 --- a/vim/after/ftplugin/html.vim +++ b/vim/after/ftplugin/html.vim @@ -1,3 +1,6 @@ +" Run tidy -eq -utf8 on file for the current buffer +nnoremap v :exe "!tidy -eq -utf8 " . shellescape(expand("%")) + " Make a bare URL into a link to itself function! UrlLink() normal ByE -- cgit v1.2.3