m (use pre instead of code tags) |
|||
Line 29: | Line 29: | ||
[http://vimdoc.sourceforge.net/htmldoc/diff.html generic vim help], this can be |
[http://vimdoc.sourceforge.net/htmldoc/diff.html generic vim help], this can be |
||
done in .vimrc using |
done in .vimrc using |
||
− | < |
+ | <pre> |
if &diff |
if &diff |
||
set diffopt+=iwhite |
set diffopt+=iwhite |
||
Line 35: | Line 35: | ||
" setup for non-diff mode |
" setup for non-diff mode |
||
endif |
endif |
||
− | </ |
+ | </pre> |
Revision as of 08:43, 1 July 2013
Tip 1294 Printable Monobook Previous Next
created 2006 · complexity basic · author vagusri · version 5.7
I had been searching for a way to ignore white spaces while using vimdiff. Unfortunately, vimdiff -h
yields the generic Vim help. I finally found that including the following line in vimrc solves the problem.
set diffopt+=iwhite
From the command line:
vimdiff -c 'set diffopt+=iwhite' ...
References
Comments
Combining this with a note from the generic vim help, this can be done in .vimrc using
if &diff set diffopt+=iwhite else " setup for non-diff mode endif