留下逃亡者的Diff视图 [英] Leave Diff view with Fugitive

查看:98
本文介绍了留下逃亡者的Diff视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆