What does :q do?

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

Where this shortcut applies

What does :q do?
AppPlatformWhat it does
VimApp contextQuit Vim (fails if there are unsaved changes)
VimApp contextForce quit Vim, discarding all unsaved changes
Adobe Premiere ProApp contextRipple-trim the previous clip's Out point to playhead
Adobe LightroomApp contextActivate the spot removal tool
TrelloApp contextHighlight only the cards assigned to you

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 documented, open the linked application reference and check its documented context before relying on it.