motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 76bd7d6cb44752022744a5cfa03a2df66a824d05 (tree)
parent ac97fa3781eaa99b354dc0abe4898a7c29a0b08b
Author: Tim Pope <code@tpope.net>
Date:   Sun, 21 Jul 2019 15:26:58 -0400

Map gr to jump to rebasing section

Diffstat:
Mautoload/fugitive.vim | 3++-
Mdoc/fugitive.txt | 3+++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1796,6 +1796,7 @@ function! fugitive#BufReadStatus() abort nnoremap <buffer> <silent> gs :<C-U>exe <SID>StageJump(v:count, 'Staged')<CR> nnoremap <buffer> <silent> gp :<C-U>exe <SID>StageJump(v:count, 'Unpushed')<CR> nnoremap <buffer> <silent> gP :<C-U>exe <SID>StageJump(v:count, 'Unpulled')<CR> + nnoremap <buffer> <silent> gr :<C-U>exe <SID>StageJump(v:count, 'Rebasing')<CR> nnoremap <buffer> <silent> C :<C-U>Gcommit<CR>:echohl WarningMsg<Bar>echo ':Gstatus C is deprecated in favor of cc'<Bar>echohl NONE<CR> nnoremap <buffer> <silent> a :<C-U>execute <SID>Do('Toggle',0)<CR> nnoremap <buffer> <silent> i :<C-U>execute <SID>StageIntend(v:count1)<CR> @@ -2611,7 +2612,7 @@ endfunction function! s:NextFileHunk(count) abort for i in range(a:count) - call search('^[A-Z?] .\|^diff --\|^[0-9a-f]\{4,\} \|^@','W') + call search('^[A-Z?] .\|^diff --\|^\%(\l\{3,\} \)\=[0-9a-f]\{4,\} \|^@','W') endfor call s:StageReveal() return '.' diff --git a/doc/fugitive.txt b/doc/fugitive.txt @@ -346,6 +346,9 @@ gp Jump to "Unpushed" section. *fugitive_gP* gP Jump to "Unpulled" section. + *fugitive_gr* +gr Jump to "Rebasing" section. + *fugitive_c* Commit mappings ~