1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add Horizontal to Vertical and Back Again as a vim til.

This commit is contained in:
jbranchaud
2015-04-04 18:11:47 -05:00
parent 443030c910
commit 0a34d6fe81
2 changed files with 21 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Close the Current Buffer](vim/close-the-current-buffer.md)
- [Generate and Edit Rails Migration](vim/generate-and-edit-rails-migration.md)
- [Head of File Name](vim/head-of-file-name.md)
- [Horizontal to Vertical and Back Again](vim/horizontal-to-veritcal-and-back-again.md)
- [List All Buffers](vim/list-all-buffers.md)
- [NETRW Listing Styles](vim/netrw-listing-styles.md)
- [Opening a URL](vim/opening-a-url.md)

View File

@@ -0,0 +1,20 @@
# 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)