Step 2 of 6

Navigating to specific lines

Navigating to specific lines

We might find ourselves wanting to jump to the very top, very bottom, or to some specific line in a file. Helix groups these jumps under the g key, which opens the goto menu — press it once and a popup lists everything it can do.

Often you know exactly which line you want. For example: most compilers will tell you which line an error is on if your build fails. With Helix, you can jump directly to the line of interest — say line 10 — by typing 10gg in normal mode. (10G works too.)

If you want to jump to the end of your file, type ge.

And if you want to jump back to the top, type gg.

Work through the checklist below — each jump is checked off the moment you make it.

  1. Jump to line 10 A count, then gg — type 10gg.
  2. Jump to the end of the file Press g and then e.
  3. Jump back to the top Press g twice, quickly.
Jump to line 10 A count, then gg — type 10gg.

Next: Jump to the end of the file

Loading editor…