Skip to content

Commit

Permalink
Use swipe gesture to navigate help
Browse files Browse the repository at this point in the history
Left/right swipe goes back/forward through tag stag when reading help.
  • Loading branch information
b4winckler committed Sep 2, 2010
1 parent 65065e6 commit a542a26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/ftplugin/help.vim
Expand Up @@ -15,5 +15,11 @@ let b:undo_ftplugin = "setl fo< tw< cole< cocu<"

setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=nc

if has("gui_macvim")
" Use swipe gesture to navigate back/forward
nmap <buffer> <silent> <SwipeLeft> :po<CR>
nmap <buffer> <silent> <SwipeRight> :ta<CR>
endif

let &cpo = s:cpo_save
unlet s:cpo_save

0 comments on commit a542a26

Please sign in to comment.