Sample Header Ad - 728x90

Make vimdiff display different lines as different lines (not partially different)

10 votes
4 answers
4312 views
vimdiff has an annoying habit of displaying two almost-completely-different lines as the same partially-different line just because they share a character in common at the beginning or end. For example: foo.txt contains: The quick brown fox jumps over the lazy dog. bar.txt contains: This is a completely different line. vimdiff foo.txt bar.txt displays these two lines side-by-side with everything but the Th at the beginning highlighted. Is there a way to disable this behaviour and just display different lines as being different lines?
Asked by Shum (1375 rep)
Oct 30, 2013, 04:50 AM
Last activity: Jul 25, 2025, 10:49 AM