> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/tools/vim/horizontal-to-vertical-and-back-again.md).

# Horizontal to Vertical and Back Again

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](http://stackoverflow.com/questions/1269603/to-switch-from-vertical-split-to-horizontal-split-fast-in-vim)
