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.

Line Navigation Precision

Estimated time: 10 minutes

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

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.

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

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
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)

Hints

  • 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

Ready for Vim?

Before starting this lesson, be prepared.

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