From 935a2cccd3065b1322fb2235285d42728600afdf Mon Sep 17 00:00:00 2001
From: Tim Pope <code@tpope.net>
Date: Tue, 19 May 2015 12:27:22 -0400
Subject: [PATCH] Don't close window after :Gremove

This is nothing more than a change in personal preference on my part.
It's particularly annoying when :Gstatus or the quickfix window is the
only other window open.
---
 plugin/fugitive.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
index 5cf1ae11..8851c7e5 100644
--- a/plugin/fugitive.vim
+++ b/plugin/fugitive.vim
@@ -1845,7 +1845,7 @@ function! s:Remove(force) abort
     return 'echoerr '.string(v:errmsg)
   else
     call fugitive#reload_status()
-    return 'bdelete'.(a:force ? '!' : '')
+    return 'edit'.(a:force ? '!' : '')
   endif
 endfunction
 
-- 
GitLab