Skip to content

Commit abd8ef7

Browse files
committed
Added fugitive_cr mappings to :Gblame window
1 parent 71fcdf2 commit abd8ef7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/fugitive.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,6 +5252,9 @@ function! s:BlameFileType() abort
52525252
call s:Map('n', 'cS', ':<C-U><Bar>Grebase --autosquash<C-R>=<SID>RebaseArgument()<CR><Home>Gcommit --no-edit --squash=<C-R>=<SID>SquashArgument()<CR>', '')
52535253
call s:Map('n', 'cA', ':<C-U>Gcommit --edit --squash=<C-R>=<SID>SquashArgument()<CR>', '')
52545254
call s:Map('n', 'c<Space>', ':Git commit<Space>', '')
5255+
call s:Map('n', 'cr<Space>', ':Git revert<Space>', '')
5256+
call s:Map('n', 'crc', ':<C-U>topleft Grevert <C-R>=<SID>SquashArgument()<CR><CR>', '<silent>')
5257+
call s:Map('n', 'crn', ':<C-U>Grevert --no-commit <C-R>=<SID>SquashArgument()<CR><CR>', '<silent>')
52555258
endfunction
52565259

52575260
augroup fugitive_blame

0 commit comments

Comments
 (0)