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

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

-----------------
|       |       |
|       |       |
|       |       |
-----------------
|               |
|               |
|               |
-----------------
share|improve this question

Use the :botright command with :split like so:

:botright split filename3

For more like this, see :help botright and page up.

share|improve this answer
1  
Should that be :botright split filename3, instead of :bottom split filename3? – tidbeck Apr 16 '12 at 12:44
    
@tidbeck yes, thanks, fixed it. – bonsaiviking Apr 16 '12 at 14:38

You could use vsplit filename to open a new window and press Ctrl+w J (uppercase J) to move it to the bottom.

Have a look at usr_08.txt. There's a lot more about this and plenty of examples...

share|improve this answer

You must log in to answer this question.

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