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.

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

Moving to Beginning and End of Lines

Estimated time: 10 minutes

Task Instructions

Master line-based movement with 0 and $ commands

Use '0' to move to the beginning of a line and '$' to move to the end of a line. Practice moving between different lines.

Learning objectives

  • Master line-based movement with 0 and $
  • Understand beginning vs end of line navigation
  • Build efficient line navigation habits

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
Move to beginning of line at least once
$
Move to end of line at least once

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
$ Move to end of line
^ Move to first non-blank character

Hints

  • 0 = beginning of line, $ = end of line
  • You can use j and k to move between lines, then 0 or $ to go to the beginning or end
vim@sandbox: ~/workspace
Make sure to save your file with :w ⏎ before submitting!