我使用git difftool比较VIM中的2个大文件。我只想导航到不同的行。
如何使用GIT difftool在不同的行之间快速导航?
我正在寻找类似winmerge快捷键的东西:
Alt + down - 下一个更改
Alt + Up - 上一个更改
答案 0 :(得分:10)
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.