From 0a34d6fe817475ad73d9e40c58f660d82c22200b Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sat, 4 Apr 2015 18:11:47 -0500 Subject: [PATCH] Add Horizontal to Vertical and Back Again as a vim til. --- README.md | 1 + vim/horizontal-to-vertical-and-back-again.md | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 vim/horizontal-to-vertical-and-back-again.md diff --git a/README.md b/README.md index ca794c0..d9be247 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/vim/horizontal-to-vertical-and-back-again.md b/vim/horizontal-to-vertical-and-back-again.md new file mode 100644 index 0000000..2ae636a --- /dev/null +++ b/vim/horizontal-to-vertical-and-back-again.md @@ -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)