mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 21:45:05 +00:00
man.vim: man#get_page(): parse page and section.
- Eliminate man#pre_get_page(). - Temporarily remove () from 'iskeyword' to avoid spurious \k match.
This commit is contained in:
@@ -14,21 +14,18 @@ if exists('$MANPAGER')
|
||||
let $MANPAGER = ''
|
||||
endif
|
||||
|
||||
" allow dot and dash in manual page name.
|
||||
setlocal iskeyword+=\.,-,(,)
|
||||
|
||||
" Avoid warning for editing the dummy file twice
|
||||
setlocal buftype=nofile noswapfile
|
||||
|
||||
setlocal nomodifiable readonly bufhidden=hide nobuflisted
|
||||
setlocal tabstop=8 colorcolumn=0
|
||||
|
||||
if !exists("g:no_plugin_maps") && !exists("g:no_man_maps")
|
||||
nnoremap <silent> <buffer> <C-]> :call man#pre_get_page(v:count)<CR>
|
||||
nnoremap <silent> <buffer> <C-]> :call man#get_page(v:count)<CR>
|
||||
nnoremap <silent> <buffer> <C-T> :call man#pop_page()<CR>
|
||||
nnoremap <silent> <nowait><buffer> q <C-W>c
|
||||
if &keywordprg !=# ':Man'
|
||||
nnoremap <silent> <buffer> K :call man#pre_get_page(v:count)<CR>
|
||||
nnoremap <silent> <buffer> K :call man#get_page(v:count)<CR>
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user