From f2546146c4dc449b49348d21c83f7216ec20142b Mon Sep 17 00:00:00 2001 From: Matteo Landi Date: Wed, 14 Jun 2023 15:59:16 +0200 Subject: [PATCH] gO to open commit in a vertical split --- autoload/fugitive.vim | 1 + doc/fugitive.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 01ece7608e..c9bb60855a 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7312,6 +7312,7 @@ function! s:BlameMaps(is_ftplugin) abort call s:Map('n', '~', ':exe BlameJump("~".v:count1)', '', ft) call s:Map('n', 'i', ':exe BlameCommit("exe BlameLeave()edit")', '', ft) call s:Map('n', 'o', ':exe BlameCommit("split")', '', ft) + call s:Map('n', 'gO', ':exe BlameCommit("vsplit")', '', ft) call s:Map('n', 'O', ':exe BlameCommit("tabedit")', '', ft) call s:Map('n', 'p', ':exe BlameCommit("pedit")', '', ft) exe s:Map('n', '.', ": =substitute(BlameCommitFileLnum()[0],'^$','@','')", '', ft) diff --git a/doc/fugitive.txt b/doc/fugitive.txt index d5d4300cfc..e48d160254 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -68,6 +68,7 @@ that are part of Git repositories). 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