Wikia

Vim Tips Wiki

Changes: Ignore white space in vimdiff

Edit

Back to page

(Change <tt> to <code>, perhaps also minor tweak.)
Line 3: Line 3:
 
|previous=1291
 
|previous=1291
 
|next=1295
 
|next=1295
|created=July 31, 2006
+
|created=2006
 
|complexity=basic
 
|complexity=basic
 
|author=vagusri
 
|author=vagusri
Line 11: Line 11:
 
|category2=
 
|category2=
 
}}
 
}}
I had been searching for a way to ignore white spaces while using vimdiff. Unfortunately, <tt>vimdiff -h</tt> yields the generic Vim help. I finally found that including the following line in vimrc solves the problem.
+
I had been searching for a way to ignore white spaces while using vimdiff. Unfortunately, <code>vimdiff -h</code> yields the generic Vim help. I finally found that including the following line in vimrc solves the problem.
   
 
<pre>
 
<pre>

Revision as of 06:18, July 13, 2012

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

Around Wikia's network

Random Wiki