aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-25 09:04:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-25 09:04:46 +1200
commitf53b1edbdbe752a79f614bfd1010213715e35776 (patch)
treed24a6ef3341989bb14ffff9774f1178396cf338d
parent67db989fcf15cac8c4ed889846f2c770299ce35e (diff)
downloaddotfiles-f53b1edbdbe752a79f614bfd1010213715e35776.tar.gz
dotfiles-f53b1edbdbe752a79f614bfd1010213715e35776.zip
Missed an ftplugin map: HTML URL linking
-rw-r--r--vim/after/ftplugin/html/url_link.vim9
-rw-r--r--vim/vimrc3
2 files changed, 2 insertions, 10 deletions
diff --git a/vim/after/ftplugin/html/url_link.vim b/vim/after/ftplugin/html/url_link.vim
index 1cf57a7b..e7263e17 100644
--- a/vim/after/ftplugin/html/url_link.vim
+++ b/vim/after/ftplugin/html/url_link.vim
@@ -47,12 +47,3 @@ nnoremap <buffer> <silent> <unique>
\ :<C-U>call <SID>HtmlUrlLink()<CR>
let b:undo_ftplugin = b:undo_ftplugin
\ . '|nunmap <buffer> <Plug>HtmlUrlLink'
-
-" If there isn't a key mapping already, use a default one
-if !hasmapto('<Plug>HtmlUrlLink')
- nmap <buffer> <unique>
- \ <LocalLeader>r
- \ <Plug>HtmlUrlLink
- let b:undo_ftplugin = b:undo_ftplugin
- \ . '|nunmap <buffer> <LocalLeader>r'
-endif
diff --git a/vim/vimrc b/vim/vimrc
index f8a5fb78..41a76270 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -281,8 +281,9 @@ if has('autocmd') && v:version >= 700
autocmd FileType diff nmap <buffer> _p <Plug>DiffPrune
autocmd FileType diff xmap <buffer> _p <Plug>DiffPrune
- " HTML: lint and tidy
+ " HTML: lint, URL-to-link, tidy
autocmd FileType html nmap <buffer> _l <Plug>HtmlLint
+ autocmd FileType html nmap <buffer> _r <Plug>HtmlUrlLink
autocmd FileType html nmap <buffer> _t <Plug>HtmlTidy
" Perl: check, lint, and tidy