Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 569 Bytes

vim_man.rst

File metadata and controls

19 lines (14 loc) · 569 Bytes

localcfg/plugins/vim_man.vim

Default to using the enhanced man page interface:

set keywordprg=:Man

Use and to hop through man pages, as I’m too used to that setup in browsers:

augroup jnrowe_vim_man
    autocmd!
    autocmd FileType man
    \   nnoremap <buffer> <CR>
    \       :call man#get_page_from_cword('horizontal', v:count)<CR>|
    \   nnoremap <buffer> <BS> <Cmd>call man#pop_page()<CR>
augroup END