Shortcut
Vim Quit Without Saving Shortcut
The Vim shortcut to quit without saving is :q! then Enter on Windows. It's the same on Mac.
Quick Answer
- Windows
- :q! then Enter
- Mac
- :q! then Enter
- Web
- Not confirmed yet
VimShortcut
Quit Without Saving
Closes the file and throws away any changes.
How to quit without saving in Vim
- Open Vim and go to where you want to quit without saving.
- Press :q! then Enter on Windows or :q! then Enter on Mac.
Vim Quit Without Saving Shortcut for Windows
Press :q! then Enter.
Vim Quit Without Saving Shortcut for Mac
Press :q! then Enter.
Vim Quit Without Saving Shortcut for Vim Web
We haven't confirmed a Vim Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Vim quit without saving shortcut?
On Windows, press :q! then Enter. On a Mac, press :q! then Enter.
Is there a Mac shortcut to quit without saving in Vim?
Yes: :q! then Enter.
Does it work in Vim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify