ACM@UIUC TIL logo ACM@UIUC TIL

Vim comes with its own diff viewer. It can be launched from the command-line with:

vim -d file1 file2
# or
vimdiff file1 file2

You can also get a diff from within Vim by opening two files in splits and running :diffthis.

More details in :help vimdiff, or check out the online docs.