How do I :split a window if the window already has been :vsplit?

Posted by Evan Carroll on Super User See other posts from Super User or by Evan Carroll
Published on 2012-04-13T21:57:54Z Indexed on 2012/04/13 23:33 UTC
Read the original article Hit count: 219

Filed under:

Let's say you open two files through a vertical split..

vim -O 1 2

Now how would I split this window horizontally across both of the vertical windows? So this is what a :vsplit looks like:

-----------------
|       |       |
|       |       |
|       |       |
|       |       |
|       |       |
|       |       |
-----------------

I want the end result to look like

-----------------
|       |       |
|       |       |
|       |       |
-----------------
|               |
|               |
|               |
-----------------

© Super User or respective owner

Related posts about vim