aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/html.vim
blob: c7bdfc7d61077fb9af9a0a90d1f5171dc795f083 (plain) (blame)
1
2
3
4
5
6
7
8
9
" Make a bare URL into a link to itself
function! UrlLink()
  normal ByE
  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>