Skip to content

Instantly share code, notes, and snippets.

@Raimondi
Forked from Osse/ftplugin_help.vim
Created April 16, 2012 00:38
Show Gist options
  • Save Raimondi/2395590 to your computer and use it in GitHub Desktop.
Save Raimondi/2395590 to your computer and use it in GitHub Desktop.
Mappings to make :help perusal easier for lazy people
if &readonly
nnoremap <silent><buffer> <Esc> :quit<CR>
nnoremap <silent><buffer> <CR> <C-]>
nnoremap <silent><buffer> <BS> <C-O>
nnoremap <silent><buffer> <Down> :call search('\(''\<bar><bar>\)[^, <bar>]\{-1,}\1', 'W')<CR>
nnoremap <silent><buffer> <Up> :call search('\(''\<bar><bar>\)[^, <bar>]\{-1,}\1', 'Wb')<CR>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment