mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
man.vim: use 'tagfunc' instead of remapping
man#pop_tag() is also no longer used
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user