From 4a7b3b3cc29ed48a96535284446d921be414fb0b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 3 Nov 2017 20:47:42 +1300 Subject: Use single quotes for HTML link mapping :execute Saves some backslashing, just like in shell and Perl! --- vim/ftplugin/html.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim/ftplugin/html.vim') 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 v :exe :call HTMLTidy() " Make a bare URL into a link to itself function! s:UrlLink() normal! yiW - execute "normal! i0\">\" + execute 'normal! i\" + execute 'normal! a\' endfunction nnoremap r :call UrlLink() -- cgit v1.2.3