Shortcut
Neovim Save and Quit Shortcut
The Neovim shortcut to save and quit is :wq then Enter on Windows. It's the same on Mac.
Quick Answer
- Windows
- :wq then Enter
- Mac
- :wq then Enter
- Web
- Not confirmed yet
NeovimShortcut
Save and Quit
Writes the file and closes Neovim.
How to save and quit in Neovim
- Open Neovim and go to where you want to save and quit.
- Press :wq then Enter on Windows or :wq then Enter on Mac.
Neovim Save and Quit Shortcut for Windows
Press :wq then Enter.
Neovim Save and Quit Shortcut for Mac
Press :wq then Enter.
Neovim Save and Quit Shortcut for Neovim Web
We haven't confirmed a Neovim Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the Neovim save and quit shortcut?
On Windows, press :wq then Enter. On a Mac, press :wq then Enter.
Is there a Mac shortcut to save and quit in Neovim?
Yes: :wq then Enter.
Does it work in Neovim for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify