Skip to content

↑↓ moveEnter openEsc close

Close the window in Vim

Vim 9.1 · 73 shortcuts · checked Nov 2026 · Source: Bram Moolenaar and the Vim community docs

In Vim, press Ctrl+W Q on Mac, Windows, Linux. Works when: normal mode.

A chord: press each combination in turn. What else uses Ctrl+W Q?

More Vim shortcuts: files and windows

ActionMacWindowsLinux
Save the fileShift;,W,EnterShift;,W,EnterShift;,W,Enter
QuitShift;,Q,EnterShift;,Q,EnterShift;,Q,Enter
Save and quitShiftZ,ShiftZShiftZ,ShiftZShiftZ,ShiftZ
Quit without savingShiftZ,ShiftQShiftZ,ShiftQShiftZ,ShiftQ
Split the window horizontallyCtrlW,SCtrlW,SCtrlW,S
Split the window verticallyCtrlW,VCtrlW,VCtrlW,V
Go to the next windowCtrlW,WCtrlW,WCtrlW,W
Make all windows the same sizeCtrlW,=CtrlW,=CtrlW,=

All 73 Vim shortcuts