在 vimdiff 中打开一个非 diff 窗口
有时我使用 vimdiff 并希望获取代码并将其放入第三个窗口/缓冲区中以供以后参考。然而,当该窗口打开时,几乎所有内容都被标识为差异(因为它故意与其他两个文件不同)。使用 vimdiff 时如何以非 diff 模式打开窗口?
Sometimes I'm using vimdiff and want to grab code and drop it in a 3rd window/buffer for later reference. When that window is open, though, just about everything is identified as a diff (because it's purposely different than the other two files). How can I open a window in non-diff mode while using vimdiff?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过在该窗口中执行
:diffoff
来防止该窗口与其他窗口进行比较。另请参见
:h :diffoff
。You can prevent a window from being diffed with the others by doing
:diffoff
in that window.See also
:h :diffoff
.