← Back to all TILs

Horizontal to Vertical and Back Again

vim Written April 04, 2015

If you have two Vim windows open with a horizontal split and you want to quickly switch them to be vertically split, you can type the following two key bindings:

Ctrl-w t
Ctrl-w H

To go from vertically split windows to horizontally split windows you can instead use:

Ctrl-w t
Ctrl-w K

source

Other posts like this