4

With vim-fugitive,

is there an easy way to "unsplit" and :Gedit (return to the current object in the working tree)?

E.g. when in Gcommit/Gstatus buffers, you would press D to enter side-by-side diff. Now, pressing ZZ would just leave me with a single editor, viewing the fugitive:// side...

To get back to single editor (with the working-tree version I have to do

ZZ:GeditEnter

(or ZZZZ to close both sides).

I'd like to have something like gq as documented under Gblame:

        q     close blame and return to blamed window
        gq    q, then |:Gedit| to return to work tree version
BЈовић
  • 62,405
  • 41
  • 173
  • 273
sehe
  • 374,641
  • 47
  • 450
  • 633

1 Answers1

1

As suggested by Tim Pope you can simply close the other window with <C-W><C-O>.

R. Martinho Fernandes
  • 228,013
  • 71
  • 433
  • 510