Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raulsouzalima/e62978b3f74a2e594d59e5641385d5c3 to your computer and use it in GitHub Desktop.
Save raulsouzalima/e62978b3f74a2e594d59e5641385d5c3 to your computer and use it in GitHub Desktop.
Vim - Flip windows
Ctrl-w H or type :wincmd H to go from horizontal to vertical layout.
Ctrl-w J or type :wincmd J to go from vertical to horizontal layout.
Ctrl-w r or type :wincmd r to swap the two buffers but keep the window layout the same.
Ctrl-w w or type :wincmd w to move the cursor between the two windows/buffers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment