What does :q do?

In Vim, :q means: Quit Vim (fails if there are unsaved changes).

Last verified: Not yet independently verified

Where this shortcut applies

What does :q do?
AppPlatformWhat it does
VimPlatform not independently verifiedQuit Vim (fails if there are unsaved changes)
Verification pending
VimPlatform not independently verifiedForce quit Vim, discarding all unsaved changes
Verification pending
Adobe Premiere ProPlatform not independently verifiedRipple-trim the previous clip's Out point to playhead
Verification pending
Adobe LightroomPlatform not independently verifiedActivate the spot removal tool
Verification pending
TrelloPlatform not independently verifiedHighlight only the cards assigned to you
Verification pending

Full shortcut pages

Frequently asked questions

What does :q do?
In Vim, :q means: Quit Vim (fails if there are unsaved changes).
Does this shortcut work the same way in every app?
No. The listed contexts include Vim, Adobe Premiere Pro, Adobe Lightroom, Trello. Check the table for each application and platform: the active window, keyboard layout and application settings determine which command receives the key press. An application being available on an operating system is not evidence that this exact binding works there.
What should I use on a Mac?
Use a macOS binding shown in the table, if one is recorded for your task and application. This page does not assume that replacing Ctrl with Cmd produces a working Mac shortcut. When an equivalent has not been independently verified, open the linked application reference and check its documented context before relying on it.