Skip to content

Commit 0a34d6f

Browse files
committed
Add Horizontal to Vertical and Back Again as a vim til.
1 parent 443030c commit 0a34d6f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
5151
- [Close the Current Buffer](vim/close-the-current-buffer.md)
5252
- [Generate and Edit Rails Migration](vim/generate-and-edit-rails-migration.md)
5353
- [Head of File Name](vim/head-of-file-name.md)
54+
- [Horizontal to Vertical and Back Again](vim/horizontal-to-veritcal-and-back-again.md)
5455
- [List All Buffers](vim/list-all-buffers.md)
5556
- [NETRW Listing Styles](vim/netrw-listing-styles.md)
5657
- [Opening a URL](vim/opening-a-url.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Horizontal to Vertical and Back Again
2+
3+
If you have two Vim windows open with a horizontal split and you want to
4+
quickly switch them to be vertically split, you can type the following two
5+
key bindings:
6+
7+
```
8+
Ctrl-w t
9+
Ctrl-w H
10+
```
11+
12+
To go from vertically split windows to horizontally split windows you can
13+
instead use:
14+
15+
```
16+
Ctrl-w t
17+
Ctrl-w K
18+
```
19+
20+
[source](http://stackoverflow.com/questions/1269603/to-switch-from-vertical-split-to-horizontal-split-fast-in-vim)

0 commit comments

Comments
 (0)