<C-N> and <C-P> in :Gstatus cycle between files
This commit is contained in:
parent
24efca8f4f
commit
119fd9e1ad
@ -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 <C-N> and <C-P> 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
|
||||
|
@ -1395,6 +1395,8 @@ function! s:BufReadIndex()
|
||||
xnoremap <buffer> <silent> - :<C-U>execute <SID>StageToggle(line("'<"),line("'>"))<CR>
|
||||
nnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR>
|
||||
xnoremap <buffer> <silent> p :<C-U>execute <SID>StagePatch(line("'<"),line("'>"))<CR>
|
||||
nnoremap <buffer> <silent> <C-N> :call search('^#\t.*','W')<Bar>.<CR>
|
||||
nnoremap <buffer> <silent> <C-P> :call search('^#\t.*','Wbe')<Bar>.<CR>
|
||||
call s:JumpInit()
|
||||
nunmap <buffer> P
|
||||
nunmap <buffer> ~
|
||||
|
Loading…
Reference in New Issue
Block a user