Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using vimdiff to compare three files side by side. How do I enable word wrap inside all three splits without having to switch to each and issue :set wrap three times? I would rather not have word wrap enabled by default though.

share|improve this question
To clarify, you are looking to have a command apply to multiple buffers without setting it as the default? – viking Jul 6 '11 at 21:27
Yes, that's right. – mike Jul 6 '11 at 21:34
I think I found the answer: :windo. – mike Jul 6 '11 at 21:43
@mike: That's the answer I was going to post, but I suggest you post it so you can get the karma. – Heptite Jul 6 '11 at 23:09
:windo set wrap

Just answer it , got the hint from the comments.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .