To switch from vertical split to horizontal split fast in Vim

Vim mailing list says (re-formatted for better readability):

To change two vertically split
windows to horizonally split

Ctrlw t Ctrlw K

Horizontally to vertically:

Ctrlw t Ctrlw H

Explanations:

Ctrlw t makes the first (topleft) window current

Ctrlw K moves the current window to full-width at the very top

Ctrlw H moves the current window to full-height at far left

Note that the t is lowercase, and the K and H are uppercase.

Also, with only two windows, it seems like you can drop the Ctrlw t part because if you’re already in one of only two windows, what’s the point of making it current?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)