after/ftplugin/help.vim
¶
Enforce vim script implementation to reduce ambiguities and improve robustness:
scriptversion 4
Use <Enter> and <Backspace> to hop through documentation, as I’m too used to that setup in browsers:
nnoremap <silent> <buffer> <CR> <C-]>
nnoremap <silent> <buffer> <BS> <C-T>
As we’re not editing help files all that often we shouldn’t need access to macros, and can therefore use q to quick quit:
nnoremap <buffer> q <Cmd>helpclose<CR>