Link to home
Start Free TrialLog in
Avatar of pmsguy
pmsguy

asked on

vimdiff command line options - wrap

I want vimdiff to wrap my text by default.

Is there a .vimdiffrc file?
Can I run vimdiff --wrap $file1 $file2 somehow to wrap lines?

While in vimdiff I can run the command
:set wrap

But I want this as the default and can not figure this out.
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Hi,

if I'm not completely mistaken vimdiff uses exactly the same options as vim does.

So your ~/.vimrc file will be used, if it's there.

It should contain a line "set wrap", and that's it.

There is no option --wrap, however.

wmp

Avatar of pmsguy
pmsguy

ASKER

I tried updating the .vimrc and it does not work
ASKER CERTIFIED SOLUTION
Avatar of Maciej S
Maciej S
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial