aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-03 20:47:42 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-03 20:47:42 +1300
commit4a7b3b3cc29ed48a96535284446d921be414fb0b (patch)
treea1901f1affbdae8b5ee31b30cf94eb79d931166f /vim/ftplugin/html.vim
parentRefactor HTML tidy(1) mapping (diff)
downloaddotfiles-4a7b3b3cc29ed48a96535284446d921be414fb0b.tar.gz
dotfiles-4a7b3b3cc29ed48a96535284446d921be414fb0b.zip
Use single quotes for HTML link mapping :execute
Saves some backslashing, just like in shell and Perl!
Diffstat (limited to 'vim/ftplugin/html.vim')
-rw-r--r--vim/ftplugin/html.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim
index b305a223..b4eb9e6b 100644
--- a/vim/ftplugin/html.vim
+++ b/vim/ftplugin/html.vim
@@ -7,8 +7,8 @@ nnoremap <LocalLeader>v :exe :<C-U>call <SID>HTMLTidy()<CR>
" Make a bare URL into a link to itself
function! s:UrlLink()
normal! yiW
- execute "normal! i<a href=\"\<C-R>0\">\<Esc>"
+ execute 'normal! i<a href="<C-R>0><Esc>'
normal! E
- execute "normal! a</a>\<Esc>"
+ execute 'normal! a</a>\<Esc>'
endfunction
nnoremap <silent> <LocalLeader>r :<C-U>call <SID>UrlLink()<CR>