mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-19 09:03:44 -05:00
gO to open commit in a vertical split
This commit is contained in:
@@ -7312,6 +7312,7 @@ function! s:BlameMaps(is_ftplugin) abort
|
|||||||
call s:Map('n', '~', ':<C-U>exe <SID>BlameJump("~".v:count1)<CR>', '<silent>', ft)
|
call s:Map('n', '~', ':<C-U>exe <SID>BlameJump("~".v:count1)<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'i', ':<C-U>exe <SID>BlameCommit("exe <SID>BlameLeave()<Bar>edit")<CR>', '<silent>', ft)
|
call s:Map('n', 'i', ':<C-U>exe <SID>BlameCommit("exe <SID>BlameLeave()<Bar>edit")<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'o', ':<C-U>exe <SID>BlameCommit("split")<CR>', '<silent>', ft)
|
call s:Map('n', 'o', ':<C-U>exe <SID>BlameCommit("split")<CR>', '<silent>', ft)
|
||||||
|
call s:Map('n', 'gO', ':<C-U>exe <SID>BlameCommit("vsplit")<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'O', ':<C-U>exe <SID>BlameCommit("tabedit")<CR>', '<silent>', ft)
|
call s:Map('n', 'O', ':<C-U>exe <SID>BlameCommit("tabedit")<CR>', '<silent>', ft)
|
||||||
call s:Map('n', 'p', ':<C-U>exe <SID>BlameCommit("pedit")<CR>', '<silent>', ft)
|
call s:Map('n', 'p', ':<C-U>exe <SID>BlameCommit("pedit")<CR>', '<silent>', ft)
|
||||||
exe s:Map('n', '.', ":<C-U> <C-R>=substitute(<SID>BlameCommitFileLnum()[0],'^$','@','')<CR><Home>", '', ft)
|
exe s:Map('n', '.', ":<C-U> <C-R>=substitute(<SID>BlameCommitFileLnum()[0],'^$','@','')<CR><Home>", '', ft)
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ that are part of Git repositories).
|
|||||||
<CR> close blame, and jump to patch that added line
|
<CR> close blame, and jump to patch that added line
|
||||||
(or directly to blob for boundary commit)
|
(or directly to blob for boundary commit)
|
||||||
o jump to patch or blob in horizontal split
|
o jump to patch or blob in horizontal split
|
||||||
|
gO jump to patch or blob in vertical split
|
||||||
O jump to patch or blob in new tab
|
O jump to patch or blob in new tab
|
||||||
p jump to patch or blob in preview window
|
p jump to patch or blob in preview window
|
||||||
- reblame at commit
|
- reblame at commit
|
||||||
|
|||||||
Reference in New Issue
Block a user