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.

Practice Moderate 10 min

Line Navigation Precision

Task Instructions

Master beginning and end of line navigation with 0, , and $

Use line navigation commands to clean up the configuration. Use '0' to go to column 0, '^' to go to first non-blank character, and '$' to go to end of line.

Learning objectives

  • Master line-based navigation commands
  • Understand difference between 0 and ^
  • Develop efficient line editing patterns

Required keystrokes

Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.

  • 0 Use 0 to go to line beginning
  • \$ Use $ to go to line end

Helpful commands

0
Move to beginning of line (column 0)
^
Move to first non-blank character
$
Move to end of line
_
Move to first non-blank character (alternate)
Stuck? Peek at a hint 3 hints · try it on your own first
  • 0 goes to absolute beginning, ^ goes to first non-space character
  • $ goes to the very end of the line
  • Combine with other commands: d$ deletes to end of line
vim@sandbox: ~/workspace
Save your file with :w ⏎ to unlock Submit