10

When having the window split vertically how do I split the window horizontally with a new buffer so that the new buffer ends up on the bottom and takes up the full width of the window:

Start here:

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

End up here:

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

2 Answers 2

8

If you opened a third window just focus the window you want at the bottom and press Ctrl+w J this will move the window under the other two.

Ctrl+w K - move window up

Ctrl+w L - move window right

Ctrl+w H - move window left

0
8

Or, to do it in a single command:

:bot sp

The long version of this is

:botright split

But I find that more confusing than the short version! I'll let you look at :help :botright for an explanation :-)

2
  • 1
    This is perfect but would recommend putting the full commands in for clarity Jul 15, 2020 at 6:12
  • Good point. Added. Jul 17, 2020 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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