Timur Fayzrakhmanov
Timur Fayzrakhmanov

Reputation: 19577

How to make two vertical windows into horizontal in vim?

This is not trivial case, so I show it by the screenshots. The first one is what I have:

enter image description here

And the second one is what I need:

enter image description here

I want to get the result by pressing some simple sequence like ^Wr. Is it possible?

UPDATE

The most quick way I found the following:

Upvotes: 2

Views: 77

Answers (1)

Kent
Kent

Reputation: 195029

I see that your cursor is on middle window. If I were you, I would do:

:wq "(or ZQ depends on if you want to save the buffer) 

to close middle window. Now your cursor should be on your left window, then:

:sp #

Upvotes: 1

Related Questions