From 33aea3b41996356fd3a3974729545e8a895be197 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 17 Jun 2015 13:04:54 +1200 Subject: Add a function to make quick links --- vim/after/ftplugin/html.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 vim/after/ftplugin/html.vim (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim new file mode 100644 index 00000000..c7bdfc7d --- /dev/null +++ b/vim/after/ftplugin/html.vim @@ -0,0 +1,9 @@ +" Make a bare URL into a link to itself +function! UrlLink() + normal ByE + execute "normal i0\">\" + normal E + execute "normal a\" +endfunction +nnoremap r :call UrlLink() + -- cgit v1.2.3