29

I made a number of changes in a file I'm working on, including indentation changes. I'm using vimdiff to compare the file to the original version, and I don't want to see these changes, since they're basically cosmetic.

How can I tell vimdiff to ignore whitespace during the comparison?

Nathan Fellman
  • 9,372
  • 20
  • 62
  • 82

1 Answers1

33

set diffopt+=iwhite
from vim wikia

secureBadshah
  • 1,611
  • 13
  • 10
  • 2
    Though that doesn't make it ignore *all* whitespace; see [this SO question](http://stackoverflow.com/q/1265410/834176). – Kazark Jan 04 '13 at 00:56