Step 3 of 6

Saving a position on purpose

Saving a position on purpose

The jumplist only records jumps, and that’s usually what you want: the big moves, without every j and w in between. Sometimes, though, you reach a spot by small steps and know you’ll want to come back to it.

For that, Helix lets you add an entry by hand:

  • Ctrl-s — save the current position to the jumplist

Nothing visible happens when you press it, but from then on Ctrl-o knows about that spot.

If your browser intercepts Ctrl-s (most leave it to the editor here, but not all), the Space-j picker on the next step reaches the same entries without the chord.

In the checklist below you walk down the file with 14j, which is not a jump, so without Ctrl-s there would be nothing for Ctrl-o to return to. Save the position first and Ctrl-o works as expected.

  1. Move down to line 15 A counted line motion — plain movement, so the jumplist doesn't notice.
  2. Save this spot, then move down again Save the position by hand, then the same counted motion down to line 29.
  3. Jump back to the saved spot with Ctrl-o Back through the jumplist — straight to line 15, the position you saved.
  4. Come forward again with Ctrl-i Forward through the jumplist — line 29 again.
Move down to line 15 A counted line motion — plain movement, so the jumplist doesn't notice.

Next: Save this spot, then move down again

Loading editor…