aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-03 22:20:09 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-03 22:20:09 +1300
commitffb5cbc7c681e2fdcb780dbdc51cf3458a937791 (patch)
treea445bfa79199cbe4a0a39f1f5303da69794cdc82 /vim/ftplugin/html.vim
parent810cb9d53c09ccb8d65a4e996f088b7af3b9a40b (diff)
downloaddotfiles-ffb5cbc7c681e2fdcb780dbdc51cf3458a937791.tar.gz
dotfiles-ffb5cbc7c681e2fdcb780dbdc51cf3458a937791.zip
Adjust UrlLink() to yank word without text objects
Diffstat (limited to 'vim/ftplugin/html.vim')
-rw-r--r--vim/ftplugin/html.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim
index 7400326c..64cf3175 100644
--- a/vim/ftplugin/html.vim
+++ b/vim/ftplugin/html.vim
@@ -8,7 +8,9 @@ nnoremap <LocalLeader>v :exe :<C-U>call <SID>HTMLTidy()<CR>
function! s:UrlLink()
" Yank this whole whitespace-separated word
- normal! yiW
+ normal! W
+ normal! B
+ normal! yE
" Open a link tag
normal! i<a href="">
" Paste the URL into the quotes