aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorRob Pilling <robpilling@gmail.com>2019-10-22 23:40:16 +0100
committerRob Pilling <robpilling@gmail.com>2019-10-24 21:15:18 +0100
commit63f0ca326322376271c68f51cf8908daad524339 (patch)
tree6a5e33385b6025e6fd37b074154e52927d04ba90 /runtime/ftplugin
parented72d9597d61f4f32162b7810dc93469bcee1ce8 (diff)
downloadrneovim-63f0ca326322376271c68f51cf8908daad524339.tar.gz
rneovim-63f0ca326322376271c68f51cf8908daad524339.tar.bz2
rneovim-63f0ca326322376271c68f51cf8908daad524339.zip
man.vim: use 'tagfunc' instead of remapping
man#pop_tag() is also no longer used
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/man.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index 6c7f095f62..b3b23833ba 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -20,13 +20,13 @@ setlocal wrap breakindent linebreak
setlocal nonumber norelativenumber
setlocal foldcolumn=0 colorcolumn=0 nolist nofoldenable
+setlocal tagfunc=man#goto_tag
+
if !exists('g:no_plugin_maps') && !exists('g:no_man_maps')
nnoremap <silent> <buffer> j gj
nnoremap <silent> <buffer> k gk
nnoremap <silent> <buffer> gO :call man#show_toc()<CR>
- nnoremap <silent> <buffer> <C-]> :Man<CR>
nnoremap <silent> <buffer> K :Man<CR>
- nnoremap <silent> <buffer> <C-T> :call man#pop_tag()<CR>
if 1 == bufnr('%') || s:pager
nnoremap <silent> <buffer> <nowait> q :lclose<CR>:q<CR>
else