Skip to content
Vim Learn
Learn/

Relative Line Jumps

18 / 51

Vertical Navigation

Relative Line Jumps

Prefix j or k with a count to travel an exact distance.

Counts keep vertical movement declarative: decide the distance once instead of checking the cursor after every repeated key.

Use {n}j, and {n}k in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.

Keys in this lesson

{n}j
Move down n lines in one jump
{n}k
Move up n lines in one jump
All 91 keys →

Practice against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

3j

Move down three lines with a count.