diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-17 13:18:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-17 13:18:35 +1200 |
commit | acc0fabe0f80704bb539d4c0d62f58526fbf96a3 (patch) | |
tree | 9610e5aea5fded244429b75874c0113ed24f942d /vim/after/ftplugin | |
parent | Add a function to make quick links (diff) | |
download | dotfiles-acc0fabe0f80704bb539d4c0d62f58526fbf96a3.tar.gz dotfiles-acc0fabe0f80704bb539d4c0d62f58526fbf96a3.zip |
Add tidy(1) function with \v
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r-- | vim/after/ftplugin/html.vim | 3 |
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 |