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 file2const app = createApp();3app.use(logger);4app.use(auth);5app.use(router);6app.listen(port);7// End of long filePress `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!
- Navigate to each green target across the code snippet.
- Use the motions and techniques learned in this lesson to land accurately on each target.
- See how fast you can complete 10 targets.
0/10
1// Start of long file2const app = createApp();3app.use(logger);4app.use(auth);5app.use(router);6app.listen(port);7// End of long fileNORMAL
00:00
NextCtrl+jParagraph Jumps