Mission 21 / 52• Advanced Vertical Movement

Paragraph Jumps

In code, blank lines separate logical blocks: functions, classes, and import sections.

Vim treats text delimited by blank lines as paragraphs. `{` and `}` jump across them instantly.

Paragraph navigation

  • }jump forward to the next blank line (end of block)
  • {jump backward to the previous blank line (start of block)
1
function fetchFirst() {
2
return 1;
3
}
4
5
function fetchSecond() {
6
return 2;
7
}
8
9
function fetchThird() {
10
return 3;
11
}

Press `}` to jump from function to function without stopping on any intermediate lines.

Now it's your turn!

  1. Navigate to each green target across the code snippet.
  2. Use the motions and techniques learned in this lesson to land accurately on each target.
  3. See how fast you can complete 10 targets.
0/10
1
function fetchFirst() {
2
return 1;
3
}
4
5
function fetchSecond() {
6
return 2;
7
}
8
9
function fetchThird() {
10
return 3;
11
}
NORMAL
00:00
NextCtrl+jWindow Scrolls