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.

Free Trial: 5 lessons remaining
Unlock Full Access
Practice Beginner 10 min

Moving with Count Modifiers

Vim Basics & Movement

Task Instructions

Learn to combine numbers with movement commands for faster navigation

Practice using count modifiers with movement commands. Try 10j to move down 10 lines, 5k to move up 5 lines, 3w to move forward 3 words, and 15l to move 15 characters right. The pattern is [count][movement].

Learning objectives

  • Understand count modifiers in Vim
  • Practice combining numbers with h, j, k, l
  • Learn to navigate quickly across multiple lines
  • Master efficient multi-character movement

Required keystrokes

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

  • \d+j Use count with j (e.g., 5j, 10j)
  • \d+k Use count with k (e.g., 3k, 5k)

Helpful commands

[count]j
Move down [count] lines (e.g., 10j)
[count]k
Move up [count] lines (e.g., 5k)
[count]h
Move left [count] characters (e.g., 15h)
[count]l
Move right [count] characters (e.g., 20l)
[count]w
Move forward [count] words (e.g., 3w)
Stuck? Peek at a hint 3 hints · try it on your own first
  • Type a number before any movement command to repeat it that many times
  • 10j = move down 10 lines, 5k = move up 5 lines
  • Works with any movement: 3w, 2b, 15l, 20h
vim@sandbox: ~/workspace
Save your file with :w ⏎ to unlock Submit