How do I jump between diff hunks in a diff view?
Answer
]c
Explanation
In diff mode, ]c jumps to the next change hunk and [c jumps to the previous one. This makes reviewing diffs efficient.
How it works
]cmoves to the start of the next change in a diff[cmoves to the start of the previous change- Only works when
diffmode is active
Example
After opening a diff with :diffsplit other_file:
]c " jump to next change
]c " jump to the one after
[c " go back one change
Tips
:diffgetand:diffputapply or send changes at the current hunk:diffupdaterefreshes the diff after manual edits:diffthisenables diff mode for the current bufferdo(diff obtain) anddp(diff put) are shortcuts for get/put