git - 离开 Fugitive 的 Diff View

标签 git vim vim-fugitive

使用 vim-fugitive,

是否有一种简单的方法来“取消拆分”和:Gedit(返回到工作树中的当前对象)?

例如在 Gcommit/Gstatus 缓冲区中时,您可以按 D 进入并排差异。 现在,按 ZZ 只会给我留下一个编辑器,查看 fugitive:// 端...

要回到单一编辑器(我必须使用工作树版本

ZZ:GeditEnter

(或 ZZZZ 关闭两侧)。

我想要在 Gblame 下记录的类似 gq 的内容:

        q     close blame and return to blamed window
        gq    q, then |:Gedit| to return to work tree version

最佳答案

作为suggested by Tim Pope你可以简单地关闭另一个窗口 <C-W><C-O> .

关于git - 离开 Fugitive 的 Diff View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19789829/

相关文章:

search - Vim - 如何将搜索结果移动到文件的开头?

perl - ctags 对 moops 的支持

git - 显示 vim-fugitive 中提交更改的文件的交互式列表

Vim Fugitive 与 neovim 终端模拟器

wordpress - Git,如何使用 git rm --cached 保存文件,即使在其他机器上 pull 后也是如此

ios - Git 子模块 vs Git 子树 vs 依赖管理器 CocoaPods

c# - Vim - 如何高亮模式的一部分

Vim 航空公司分支不显示

git - 我是否在 GitHub 上正确设置了 fork Remote ?

git - 在 git interactive rebase 期间添加了新文件,中止了 rebase,新文件丢失