aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 18:36:18 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 18:36:18 +1300
commit1eef391006a3c70b7361b6480c8922d1a29c7a7d (patch)
tree37fd358093c2656b3af7f076c16723ed3c618c1a /vim/ftplugin/html.vim
parentMove non-indent HTML Vim config indent->ftplugin (diff)
parentAdd a `lint-vim` target for linting Vim config (diff)
downloaddotfiles-1eef391006a3c70b7361b6480c8922d1a29c7a7d.tar.gz
dotfiles-1eef391006a3c70b7361b6480c8922d1a29c7a7d.zip
Merge branch 'vim/vint'
The Vim configuration, excluding the submodule plugin bundles, now passes a strict run of the vim-vint tool. There's also now a `lint-vim` target in the Makefile.
Diffstat (limited to 'vim/ftplugin/html.vim')
-rw-r--r--vim/ftplugin/html.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim
index 38b71656..ca762422 100644
--- a/vim/ftplugin/html.vim
+++ b/vim/ftplugin/html.vim
@@ -3,9 +3,9 @@ nnoremap <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR>
" Make a bare URL into a link to itself
function! UrlLink()
- normal yiW
- execute "normal i<a href=\"\<C-R>0\">\<Esc>"
- normal E
- execute "normal a</a>\<Esc>"
+ normal! yiW
+ execute "normal! i<a href=\"\<C-R>0\">\<Esc>"
+ normal! E
+ execute "normal! a</a>\<Esc>"
endfunction
nnoremap <silent> <leader>r :<C-U>call UrlLink()<CR>