Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

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
vim@sandbox: ~/workspace
Save your file with :w ⏎ to unlock Submit