Press i in blame to close then jump to commit
This commit is contained in:
parent
59ce7a9e19
commit
c4baefff69
@ -170,10 +170,12 @@ that are part of Git repositories).
|
|||||||
[count]th first grandparent (like HEAD~[count]), or P
|
[count]th first grandparent (like HEAD~[count]), or P
|
||||||
to reblame at that commit's [count]th parent (like
|
to reblame at that commit's [count]th parent (like
|
||||||
HEAD^[count]). Press o or O to open up that commit
|
HEAD^[count]). Press o or O to open up that commit
|
||||||
in a horizontal of vertical split. Pressing q will
|
in a horizontal of vertical split, or i to close the
|
||||||
close the blame buffer, and pressing gq will close the
|
blame window and open the commit in place of the
|
||||||
blame buffer and return the targeted window to the
|
original file. Pressing q will close the blame
|
||||||
work tree version.
|
buffer, and pressing gq will close the blame buffer
|
||||||
|
and return the targeted window to the work tree
|
||||||
|
version.
|
||||||
|
|
||||||
:[range]Gblame [flags] Run git-blame on the given range.
|
:[range]Gblame [flags] Run git-blame on the given range.
|
||||||
|
|
||||||
|
@ -1488,6 +1488,7 @@ function! s:Blame(bang,line1,line2,count,args) abort
|
|||||||
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>BlameJump('')<CR>
|
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>BlameJump('')<CR>
|
||||||
nnoremap <buffer> <silent> P :<C-U>exe <SID>BlameJump('^'.v:count1)<CR>
|
nnoremap <buffer> <silent> P :<C-U>exe <SID>BlameJump('^'.v:count1)<CR>
|
||||||
nnoremap <buffer> <silent> ~ :<C-U>exe <SID>BlameJump('~'.v:count1)<CR>
|
nnoremap <buffer> <silent> ~ :<C-U>exe <SID>BlameJump('~'.v:count1)<CR>
|
||||||
|
nnoremap <buffer> <silent> i :<C-U>exe "exe 'norm q'<Bar>".<SID>Edit("edit", 0, matchstr(getline('.'),'\x\+'))<CR>
|
||||||
nnoremap <buffer> <silent> o :<C-U>exe <SID>Edit((&splitbelow ? "botright" : "topleft")." split", 0, matchstr(getline('.'),'\x\+'))<CR>
|
nnoremap <buffer> <silent> o :<C-U>exe <SID>Edit((&splitbelow ? "botright" : "topleft")." split", 0, matchstr(getline('.'),'\x\+'))<CR>
|
||||||
nnoremap <buffer> <silent> O :<C-U>exe <SID>Edit("tabedit", 0, matchstr(getline('.'),'\x\+'))<CR>
|
nnoremap <buffer> <silent> O :<C-U>exe <SID>Edit("tabedit", 0, matchstr(getline('.'),'\x\+'))<CR>
|
||||||
syncbind
|
syncbind
|
||||||
|
Loading…
Reference in New Issue
Block a user