Mission 20 / 52• Advanced Vertical Movement

Absolute Line Jumps

Files can be hundreds or thousands of lines long. `gg` and `G` transport you to the extremes in a fraction of a second.

Absolute jumps

  • ggjump to the very first line of the file
  • Gjump to the very last line of the file
  • {n}Gjump directly to line {n} (e.g. 5G)
1
// Start of long file
2
const app = createApp();
3
app.use(logger);
4
app.use(auth);
5
app.use(router);
6
app.listen(port);
7
// End of long file

Press `G` to instantly drop to the bottom line of the code. Press `gg` to shoot straight back to line 1.

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
// Start of long file
2
const app = createApp();
3
app.use(logger);
4
app.use(auth);
5
app.use(router);
6
app.listen(port);
7
// End of long file
NORMAL
00:00
NextCtrl+jParagraph Jumps