aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-17 13:21:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-17 13:21:04 +1200
commitd31a02b736297b0e6d8e24360a25dedb38c7d864 (patch)
treeae80dfb8fbe374e01946324ec623dbd8e507617d /vim/after/ftplugin
parentAdd tidy(1) function with \v (diff)
downloaddotfiles-d31a02b736297b0e6d8e24360a25dedb38c7d864.tar.gz
dotfiles-d31a02b736297b0e6d8e24360a25dedb38c7d864.zip
Use surround commands to get current word
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/html.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim
index 7d54b346..ef7720e1 100644
--- a/vim/after/ftplugin/html.vim
+++ b/vim/after/ftplugin/html.vim
@@ -3,7 +3,7 @@ nnoremap <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR>
" Make a bare URL into a link to itself
function! UrlLink()
- normal ByE
+ normal yiW
execute "normal i<a href=\"\<C-R>0\">\<Esc>"
normal E
execute "normal a</a>\<Esc>"