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.

15/19
Free Trial: 5 lessons remaining
Unlock Full Access

Saving Files

Estimated time: 10 minutes

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

This lesson requires you to use specific keystrokes to complete it. Your submission will be evaluated based on whether you used the required keystrokes mentioned below, rather than matching a specific output.

i
Enter Insert Mode to add text
\<Esc\>
Exit Insert Mode
:w
Save the file

What This Means

  • Your solution must include the required keystroke patterns
  • The order of keystrokes may matter depending on the exercise
  • You'll still need to achieve the expected output
  • This helps you practice specific Vim techniques

Helpful commands:

Command Description
:w Write (save) the current file
i Enter Insert Mode to add text
Escape Return to Normal Mode

Hints

  • 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

Ready for Vim?

Before starting this lesson, be prepared.

Read the directions on the left, and when you're ready, let's go!