Skip to content

Instantly share code, notes, and snippets.

@kidpollo
Created October 27, 2011 18:29
Show Gist options
  • Save kidpollo/1320385 to your computer and use it in GitHub Desktop.
Save kidpollo/1320385 to your computer and use it in GitHub Desktop.
VIM suffs
To change two vertically split windows to horizonally split
^Wt^WK
Horizontally to vertically:
^Wt^WH
where ^W means "hit Ctrl-W". Explanations:
^Wt makes the first (topleft) window current
^WK moves the current window to full-width at the very top
^WH moves the current window to full-height at far left
@cnix
Copy link

cnix commented Nov 1, 2011

You might like this one:

" swap buffers
map ww x

^Wx is really difficult to type, but super useful when you have a model/controller in your left pane, and a spec on the right. leader ww and they swap. (also swaps horizontally split buffers) boosh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment