Course
Free Trial: 5 lessons remaining
Unlock Full Access
Practice
Beginner
10 min
Saving Files
Basic Text Editing
Task Instructions
Learn how to save your changes to a file
Fill in your name in the blank, then save the file using ':w'. Press ':' to enter command mode, type 'w', and press Enter to save.
Learning objectives
- Learn to save files with the :w command
- Understand when to save your work
- Practice the file saving workflow
Required keystrokes
Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.
- i Enter Insert Mode to add text
- \<Esc\> Exit Insert Mode
- :w Save the file
Helpful commands
- :w
- Write (save) the current file
- i
- Enter Insert Mode to add text
- Escape
- Return to Normal Mode
Stuck? Peek at a hint 3 hints · try it on your own first
- First add your name using Insert Mode (press 'i')
- Press Escape to return to Normal Mode
- Type ':w' and press Enter to save the file
Hello, I am learning to save files in Vim.
This is my practice text.
I will add my name here: ___
Then I will save the file using :w