3

I'm trying to understand how vimdiff work.

Here I tried to diff two simple files. The 1st:

abcdefghijklmnopqrstuvwxyz

foo

abcdefghijklmnopqrstuvwxyz iii

bar

The 2nd:

abcdefghijklmnopqrstuvwxyz

abcdefghijklmnopqrstuvwxyz

Here is result from diffmerge utility:

enter image description here

And here is result from vim:

enter image description here

Note that vim doesn't see the similarity between abc...xyz and abc...xyz iii lines and doesn't arrange them visually on one line.

Is there some settings to improve vimdiff in such cases?

  • 4
    Try the diffchar plugin. It might improve things. – muru Apr 9 '16 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.