From ffb5cbc7c681e2fdcb780dbdc51cf3458a937791 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 3 Nov 2017 22:20:09 +1300 Subject: Adjust UrlLink() to yank word without text objects --- vim/ftplugin/html.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 v :exe :call HTMLTidy() function! s:UrlLink() " Yank this whole whitespace-separated word - normal! yiW + normal! W + normal! B + normal! yE " Open a link tag normal! i " Paste the URL into the quotes -- cgit v1.2.3