Skip to content

Commit

Permalink
gO to open commit in a vertical split
Browse files Browse the repository at this point in the history
  • Loading branch information
iamFIREcracker committed Mar 5, 2024
1 parent 41beeda commit f254614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/fugitive.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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', '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', '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', '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)
Expand Down
1 change: 1 addition & 0 deletions doc/fugitive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ that are part of Git repositories).
<CR> close blame, and jump to patch that added line
(or directly to blob for boundary commit)
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
p jump to patch or blob in preview window
- reblame at commit
Expand Down

0 comments on commit f254614

Please sign in to comment.