Skip to content

Commit

Permalink
Add fugitive_cr mappings to :Gblame window
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Oct 20, 2019
1 parent 7ec8518 commit 9e1e78a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5252,6 +5252,9 @@ function! s:BlameFileType() abort
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>', '')
call s:Map('n', 'cA', ':<C-U>Gcommit --edit --squash=<C-R>=<SID>SquashArgument()<CR>', '')
call s:Map('n', 'c<Space>', ':Git commit<Space>', '')
call s:Map('n', 'cr<Space>', ':Git revert<Space>', '')
call s:Map('n', 'crc', ':<C-U>topleft Grevert <C-R>=<SID>SquashArgument()<CR><CR>', '<silent>')
call s:Map('n', 'crn', ':<C-U>Grevert --no-commit <C-R>=<SID>SquashArgument()<CR><CR>', '<silent>')
endfunction

augroup fugitive_blame
Expand Down

0 comments on commit 9e1e78a

Please sign in to comment.