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:

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

| improve this answer | |
7

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 :-)

| improve this answer | |
  • This is perfect but would recommend putting the full commands in for clarity – RobStallion Jul 15 at 6:12
  • Good point. Added. – spookypeanut Jul 17 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.