I know that I can ignore white space in vimdiff by se diffopt+=iwhte
but I also want to ignore newline character in vimdiff. How can I do it?
e.g.
if (a>b){
bar()`
would not be shown diff with
if(a>b){bar()
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To really omit the added lines, you will have to write a custom diff function, cp.
:help diff-diffexpr.If you just don’t want to see the added lines (because they’re too visually distracting), you can modify the
DiffAddhighlight group to show white-on-white (or black-on-black in the console) text (or any other low-contrast coloring, in a similar way: