Try J/K for next/previous

I'm also entertaining using J to toggle the "squash" instruction in an
interactive rebase, so no documentation for these yet.
This commit is contained in:
Tim Pope 2019-02-18 14:07:04 -05:00
parent 01b9a645b6
commit 8caa4a0ba3
2 changed files with 3 additions and 1 deletions

View File

@ -1563,6 +1563,8 @@ function! fugitive#BufReadStatus() abort
nnoremap <buffer> <silent> ds :<C-U>execute <SID>StageDiff('Gsdiff')<CR>
nnoremap <buffer> <silent> dp :<C-U>execute <SID>StageDiffEdit()<CR>
nnoremap <buffer> <silent> dv :<C-U>execute <SID>StageDiff('Gvdiff')<CR>
nnoremap <buffer> <silent> J :<C-U>execute <SID>StageNext(v:count1)<CR>
nnoremap <buffer> <silent> K :<C-U>execute <SID>StagePrevious(v:count1)<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> q :<C-U>if bufnr('$') == 1<Bar>quit<Bar>else<Bar>bdelete<Bar>endif<CR>

View File

@ -253,7 +253,7 @@ u Unstage (reset) the file or hunk under the cursor.
<C-N> Skip to the next file or hunk.
*fugitive_CTRL-P*
<C-P> Skip to the next file or hunk.
<C-P> Skip to the previous file or hunk.
*fugitive_X*
X Discard the change under the cursor. This uses