Mission 22 / 52• Advanced Vertical Movement

Window Scrolls

Holding `j` or `k` to scroll is jarring and slows you down. Vim provides half-page scrolls that keep your cursor grounded.

Scrolling keys

  • Ctrl+dscroll half a screen DOWN (downward)
  • Ctrl+uscroll half a screen UP (upward)
1
const line1 = 1;
2
const line2 = 2;
3
const line3 = 3;
4
const line4 = 4;
5
const line5 = 5;
6
const line6 = 6;
7
const line7 = 7;
8
const line8 = 8;

Press `Ctrl+d` to step quickly down through documents, and `Ctrl+u` to leap back up.

Now it's your turn!

0 / 4 tasks complete0.0s / 12s par0 / 5 par

Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.

Task 1: Scroll up half a window with Ctrl+u from line 11 to line 6.

Show hint

Press Ctrl+u.

1
const line1 = 1;
2
const line2 = 2;
3
const line3 = 3;
4
const line4 = 4;
5
const line5 = 5;
6
const line6 = 6;
7
const line7 = 7;
8
const line8 = 8;
9
const line9 = 9;
10
const line10 = 10;
11
const line11 = 11;
12
const line12 = 12;
13
const line13 = 13;
14
const line14 = 14;
15
const line15 = 15;
16
const line16 = 16;
17
const line17 = 17;
18
const line18 = 18;
19
const line19 = 19;
20
const line20 = 20;
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next