Thursday, September 5, 2013

No syntax highlighting in vimdiff

Vim Syntax highlight often mixed with diff color, which makes text unreadable.

Add following line in ~/.vimrc to turn off syntax off in vimdiff

if &diff | syntax off | endif

2 comments:

  1. this really help a lot. thanks!

    ReplyDelete
  2. Thanks a lot this helped lot and saved my time.

    ReplyDelete