Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.