aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-03 22:22:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-03 22:22:56 +1300
commita6b6f843eea0d101bf533c1e0894a95e13dd1c75 (patch)
tree6e4e1dd1bba58793d434cd67965bc615feba468a /vim/ftplugin/html.vim
parentAdjust UrlLink() to yank word without text objects (diff)
downloaddotfiles-a6b6f843eea0d101bf533c1e0894a95e13dd1c75.tar.gz
dotfiles-a6b6f843eea0d101bf533c1e0894a95e13dd1c75.zip
Revert "Adjust UrlLink() to yank word without t...
I thought text objects were introduced to Vim a lot later than they actually were; this works fine even in Vim 6, so I'll leave it as it's nicer. This reverts commit ffb5cbc7c681e2fdcb780dbdc51cf3458a937791.
Diffstat (limited to 'vim/ftplugin/html.vim')
-rw-r--r--vim/ftplugin/html.vim4
1 files changed, 1 insertions, 3 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim
index 64cf3175..7400326c 100644
--- a/vim/ftplugin/html.vim
+++ b/vim/ftplugin/html.vim
@@ -8,9 +8,7 @@ nnoremap <LocalLeader>v :exe :<C-U>call <SID>HTMLTidy()<CR>
function! s:UrlLink()
" Yank this whole whitespace-separated word
- normal! W
- normal! B
- normal! yE
+ normal! yiW
" Open a link tag
normal! i<a href="">
" Paste the URL into the quotes