Skip to the main content

Vim

Close the window without writing

ShiftZShiftQ

Linux Desktop app Vim default commands

Practice this

In Vim, Shift + Z, then Shift + Q will close the window without writing.

Where it works: Normal mode

Vim is case sensitive. Shift with a letter types the capital letter, which is a different command from the small letter.

Every documented variant

Variants of this shortcut
System Environment Keys
Linux Desktop app ShiftZShiftQ
Mac Desktop app ShiftZShiftQ

Where this comes from

Vim help: index.txt - vim/vim

Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.

Report a correction