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

How do I easily open my current vim buffers/arguments in a separate window/tab each?

I know about:

$ vim one.txt two.txt three.txt -O

However if I simply start vim with:

$ vim one.txt two.txt three.txt

How can I replicate this behaviour once I've already started vim?

share|improve this question
up vote 13 down vote accepted

To split all buffers use :sba or :vert sba

share|improve this answer
1  
Thanks! :tab sball opens all buffers in a tab each. – Klaas van Schelven Aug 16 '11 at 8:39

Vim command :sba has also a shortcut: :ba.

:[N]ba[ll] [N] :[N]sba[ll] [N] Rearrange the screen to open one window for each buffer in the buffer list.

To back again to single tag, use: :on (:only).

:on[ly][!] Make the current window the only one on the screen. All other windows are closed.

To quit, use: :qa

See also: How to convert all windows into horizontal, vertical or tab splits? at Vim SE

share|improve this answer

You must log in to answer this question.

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