Shortcut
Vim Save the File Shortcut
The Vim shortcut to save the file is :w then Enter on Windows. It's the same on Mac.
Quick Answer
- Windows
- :w then Enter
- Mac
- :w then Enter
- Web
- Not confirmed yet
VimShortcut
Save the File
Writes the file to disk and keeps editing.
How to save the file in Vim
- Open Vim and go to where you want to save the file.
- Press :w then Enter on Windows or :w then Enter on Mac.
Vim Save the File Shortcut for Windows
Press :w then Enter.
Vim Save the File Shortcut for Mac
Press :w then Enter.
Vim Save the File 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 save the file shortcut?
On Windows, press :w then Enter. On a Mac, press :w then Enter.
Is there a Mac shortcut to save the file in Vim?
Yes: :w 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