From 6d0490fabab4c086610e37a88c8245f927205e6d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 30 Oct 2017 17:47:02 +1300 Subject: Move non-indent HTML Vim config indent->ftplugin This was mistakenly moved along with some indentation settings in 9858af6. --- vim/ftplugin/html.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vim/ftplugin/html.vim (limited to 'vim/ftplugin/html.vim') diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim new file mode 100644 index 00000000..38b71656 --- /dev/null +++ b/vim/ftplugin/html.vim @@ -0,0 +1,11 @@ +" 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 yiW + execute "normal i0\">\" + normal E + execute "normal a\" +endfunction +nnoremap r :call UrlLink() -- cgit v1.2.3