如何跳转到GIT difftool中的下一个/上一个差异? [英] How do I jump to the next/prev diff in GIT difftool?
本文介绍了如何跳转到GIT difftool中的下一个/上一个差异?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用git difftool比较VIM中的2个大文件.我只想导航到不同的行.
I am using git difftool to compare 2 large files in VIM. I want to navigate only to the lines that differ.
如何使用GIT difftool快速在不同的行之间导航?
How do I navigate quickly between lines that differ using GIT difftool ?
我正在寻找诸如winmerge快捷键之类的东西:
Alt +向下键-下一步更改
Alt +向上键-上一个更改
I am looking for something like winmerge shortcut keys :
Alt+down - Next Change
Alt+Up - Prev Change
推荐答案
vim
具有广泛而非常好的帮助文件.尝试熟悉一下会对您有所帮助.
vim
Has an extensive and pretty good helpfile. You would do yourself a favour trying to familiarize yourself with it.
来自: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.
这篇关于如何跳转到GIT difftool中的下一个/上一个差异?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文