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!

0 / 4 tasks complete0.0s / 13s par0 / 6 par

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

Task 1: Jump backward over empty lines with {.

Show hint

Press {.

1
function one() {}
2
3
function two() {}
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next