Tip #179: Simplify help buffer navigation
tip karma |
Rating 16/6, Viewed by 1117
|
created: |
|
December 14, 2001 3:24 |
|
complexity: |
|
intermediate |
author: |
|
Max Ischenko |
|
as of Vim: |
|
6.0 |
Vim is distributed with comprehensive help system, which has basic hyperlink support -
you can press <C-]> over |some subject| or 'some option' to read more about particular term.
The following mappings simplify help buffer navigation:
pressing s(or S) will find next(previous) subject from cursor position
pressing o(or O) will find next(previous) option from cursor position
pressing Enter will jump to subject under cursor
pressing Backspace will return from the last jump
Put them into help filetype plugin (like ~/.vim/ftplugin/help.vim on UNIX).
nmap <buffer> <CR> <C-]>
nmap <buffer> <BS> <C-T>
nmap <buffer> o /'[a-z]\{2,\}'<CR>
nmap <buffer> O ?'[a-z]\{2,\}'<CR>
nmap <buffer> s /\|\S\+\|<CR>
nmap <buffer> S ?\|\S\+\|<CR>
<<Making a "derived" colorscheme without copy & paste |
Reload your filetype/syntax plugin >>
Additional Notes
|