help, man.vim: "outline" (TOC) feature #5169

This commit is contained in:
Tommy Allen
2016-08-05 00:47:28 -04:00
committed by Justin M. Keyes
parent cd190db8b3
commit bc4a2e1576
8 changed files with 133 additions and 2 deletions

View File

@@ -31,13 +31,14 @@ setlocal nolist
setlocal nofoldenable
if !exists('g:no_plugin_maps') && !exists('g:no_man_maps')
nnoremap <silent> <buffer> <M-]> :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 s:pager
nnoremap <silent> <buffer> <nowait> q :q<CR>
nnoremap <silent> <buffer> <nowait> q :lclose<CR>:q<CR>
else
nnoremap <silent> <buffer> <nowait> q <C-W>c
nnoremap <silent> <buffer> <nowait> q :lclose<CR><C-W>c
endif
endif