aboutsummaryrefslogtreecommitdiff
path: root/vim/ftplugin/html.vim
diff options
context:
space:
mode:
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 ca762422..3f28e9ea 100644
--- a/vim/ftplugin/html.vim
+++ b/vim/ftplugin/html.vim
@@ -2,10 +2,10 @@
nnoremap <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR>
" Make a bare URL into a link to itself
-function! UrlLink()
+function! s:UrlLink()
normal! yiW
execute "normal! i<a href=\"\<C-R>0\">\<Esc>"
normal! E
execute "normal! a</a>\<Esc>"
endfunction
-nnoremap <silent> <leader>r :<C-U>call UrlLink()<CR>
+nnoremap <silent> <leader>r :<C-U>call <SID>UrlLink()<CR>