留下逃亡者的Diff视图 [英] Leave Diff view with Fugitive
问题描述
对于vim逃犯,
是否有一种简单的方法来取消拆分"和:Gedit
(返回到工作树中的当前对象)?
is there an easy way to "unsplit" and :Gedit
(return to the current object in the working tree)?
例如在Gcommit
/Gstatus
缓冲区中时,您可以按 D 输入并排差异.
现在,按 ZZ 将只剩下一个编辑器,查看fugitive://
面...
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 :Gedit Enter
(或ZZZZ关闭双方).
(or ZZZZ to close both sides).
我想使用Gblame
中记录的类似gq
的东西:
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
推荐答案
由建议由Tim提出教皇,您只需使用<C-W><C-O>
关闭另一个窗口即可.
As suggested by Tim Pope you can simply close the other window with <C-W><C-O>
.
这篇关于留下逃亡者的Diff视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!