aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-17 13:18:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-17 13:18:35 +1200
commitacc0fabe0f80704bb539d4c0d62f58526fbf96a3 (patch)
tree9610e5aea5fded244429b75874c0113ed24f942d /vim/after/ftplugin/html.vim
parentAdd a function to make quick links (diff)
downloaddotfiles-acc0fabe0f80704bb539d4c0d62f58526fbf96a3.tar.gz
dotfiles-acc0fabe0f80704bb539d4c0d62f58526fbf96a3.zip
Add tidy(1) function with \v
Diffstat (limited to 'vim/after/ftplugin/html.vim')
-rw-r--r--vim/after/ftplugin/html.vim3
1 files changed, 3 insertions, 0 deletions
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 <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR>
+
" Make a bare URL into a link to itself
function! UrlLink()
normal ByE