diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 6b46221..8ba2e8b 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -51,7 +51,9 @@ that are part of Git repositories). *fugitive-:Gstatus* :Gstatus Bring up the output of git-status in the preview - window. Press D to |:Gdiff| the file on the cursor + window. In addition to standard motions, you can + use and to jump from filename to + filename. Press D to |:Gdiff| the file on the cursor line, or dh to |:Gdiff!|. Press - to stage or unstage the file on the cursor line. Press p to do so on a per hunk basis (--patch). Press C to invoke diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 298e59d..1b58c32 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1395,6 +1395,8 @@ function! s:BufReadIndex() xnoremap - :execute StageToggle(line("'<"),line("'>")) nnoremap p :execute StagePatch(line('.'),line('.')+v:count1-1) xnoremap p :execute StagePatch(line("'<"),line("'>")) + nnoremap :call search('^#\t.*','W'). + nnoremap :call search('^#\t.*','Wbe'). call s:JumpInit() nunmap P nunmap ~