Show Menu
Cheatography

Vim Windows Cheat Sheet (DRAFT) by

v1.0 of my vim window navigation cheat sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Opening

CTRL-W s
:[N]sp­[lit]
Horizontal split of buffer
CTRL-W v
:[N]vs­[plit]
Vertical split of buffer
CTRL-W n
:[N]new
New empty buffer
 
:[N]vne[w]
New empty buffer V* split
CTRL-W ^
 
Split opening alternate file
:h openin­g-w­indow

* [N] = height of the new window, default is half the current width or height (depending upon orient­ation

Navigate

CTRL-W j
Down
CTRL-W k
Up
CTRL-W h
Left
CTRL-W l
Right
CTRL-W w
Below/­right of current
CTRL-W W
Above/left of current
CTRL-W t
Top left
CTRL-W b
Bottom­/right
CTRL-W p
Previous
CTRL-W P
Previous, error if none
 

Closing

CTRL-W q
 
closes current window and quits if last
CTRL-W c
 
Safer quit. (:h CTRL-W_c)
CTRL-W o
:on
Makes current the only window on screen
   
Closes others

Move

CTRL-W r
Rotate windows down/right
CTRL-W R
Rotate windows up/left
CTRL-W x
Exchange with next/p­revious
CTRL-W K
Move to very top, full width
CTRL-W J
Move to very bottom, full width
CTRL-W H
Move to far left, full height
CTRL-W L
Move to far right, full height
CTRL-W T
Move to new tab page