diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-17 13:21:04 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-17 13:21:04 +1200 |
commit | d31a02b736297b0e6d8e24360a25dedb38c7d864 (patch) | |
tree | ae80dfb8fbe374e01946324ec623dbd8e507617d | |
parent | Add tidy(1) function with \v (diff) | |
download | dotfiles-d31a02b736297b0e6d8e24360a25dedb38c7d864.tar.gz dotfiles-d31a02b736297b0e6d8e24360a25dedb38c7d864.zip |
Use surround commands to get current word
-rw-r--r-- | vim/after/ftplugin/html.vim | 2 |
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>" |