我正在使用git difftool比较VIM中的2个大文件。我只想导航到不同的行。
如何使用GIT difftool快速在不同的行之间导航?
我正在寻找诸如winmerge快捷键之类的东西:
Alt +向下键-下一个更改
Alt +向上键-上一个更改
最佳答案
vim
具有广泛而非常好的帮助文件。尝试使自己熟悉时,将对您有所帮助。
来自:h diff
3. Jumping to diffs *jumpto-diffs*
Two commands can be used to jump to diffs:
*[c*
[c Jump backwards to the previous start of a change.
When a count is used, do it that many times.
*]c*
]c Jump forwards to the next start of a change.
When a count is used, do it that many times.