有了Vim的所有高级编辑功能,我很难相信VimDiff没有一种从/向右/向左复制的方法!difftool还能用来做什么?有什么想法吗?VimDiff有哪些功能?
而且,我甚至看不到转移到下一个/上一个差异的方法!!
发布于 2010-12-25 18:29:11
帮助中解释了所有内容... (do、dp、]c、[c)
:h diff:h :h也是你的朋友。
发布于 2012-06-29 22:58:32
您需要使用do和dp来满足您的复制需求;它们表示来自当前窗口的“put”,以及来自另一个窗口的“获取”。(这假设存在双重拆分差异。)
要移动到下一个/上一个差异,请使用]c和[c。
以下是我使用的基本命令,在可能的情况下使用助记符:
dp - 'put' the changes from the current window into the other window.
do - 'obtain' the changes from other window.
]c - Go to change after (ending/next bracket) -- move to the next difference.
[c - Go to change before(opening/previous bracket) -- move to the previous diff.
zo - 'open' a section of folded text.
zc - 'close' a foldable text section.
Ctrl-W+Ctrl W - (That's ^W twice.) Jump to the other window.
:diffupdate - updates diff based on changes .https://stackoverflow.com/questions/4529981
复制相似问题