CHAPTER 18

image

Diffing

Regardless of whether you’re working with a Version Control System (such as Git/SVN/Mercurial) or not, being able to compare different versions of the same file can be very useful in the right circumstances.

For example, if you’re working in a programming environment, you’ll likely encounter an issue known as a “merge conflict,” when teaming with other programmers. This is when you have a repository of code, and you’ve forked the project to add feature A, while another team has forked the project to add feature B, and both features require modifying the same file (or set of files). The other team has managed to get their changes ...

Get Pro Vim now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.