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.

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

Basic Movement with h, j, k, l

Estimated time: 10 minutes

Task Instructions

Learn the fundamental h, j, k, l movement keys in Vim

Practice using h (left), j (down), k (up), and l (right) to move the cursor around the text.

Learning objectives

  • Master the h, j, k, l movement keys
  • Build muscle memory for basic navigation
  • Understand directional movement in Vim

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.

h
Move left at least once
j
Move down at least once
k
Move up at least once
l
Move right 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
h Move cursor left
j Move cursor down
k Move cursor up
l Move cursor right

Hints

  • h=left, j=down, k=up, l=right
  • Don't press 'i' - just use the movement keys
vim@sandbox: ~/workspace
Make sure to save your file with :w ⏎ before submitting!