How to compare two files?

If the two files are in two splits, try :windo diffthis.
Otherwise, try :diffsplit.

4 Likes