mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +00:00
Add Horizontal to Vertical and Back Again as a vim til.
This commit is contained in:
@@ -51,6 +51,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
- [Close the Current Buffer](vim/close-the-current-buffer.md)
|
- [Close the Current Buffer](vim/close-the-current-buffer.md)
|
||||||
- [Generate and Edit Rails Migration](vim/generate-and-edit-rails-migration.md)
|
- [Generate and Edit Rails Migration](vim/generate-and-edit-rails-migration.md)
|
||||||
- [Head of File Name](vim/head-of-file-name.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)
|
- [List All Buffers](vim/list-all-buffers.md)
|
||||||
- [NETRW Listing Styles](vim/netrw-listing-styles.md)
|
- [NETRW Listing Styles](vim/netrw-listing-styles.md)
|
||||||
- [Opening a URL](vim/opening-a-url.md)
|
- [Opening a URL](vim/opening-a-url.md)
|
||||||
|
|||||||
20
vim/horizontal-to-vertical-and-back-again.md
Normal file
20
vim/horizontal-to-vertical-and-back-again.md
Normal 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)
|
||||||
Reference in New Issue
Block a user