logoalt Hacker News

lelanthranyesterday at 6:25 PM1 replyview on HN

>> single keystroke could move the cursor halfway across the file to exactly the right spot.

> sorry what is this? exaggeration?

It is indeed. I need two keystrokes to move from an arbitrary positions in an arbitrarily long file to the exact spot I need to be.

I use it all the time, in fact. Multiple times an hour. It's muscle memory now for me, while reading/navigating code, to automatically do `ma` or `mb` etc.

At some later point I realise "let me read the function definition again" and then I do `'a` or `'b`, etc.


Replies

tuanyesterday at 6:58 PM

if someone really want to have single keystroke, there's always F<number> key that they can map to their frequently used movements, such as last edit, next function, special marker (such as `m`), etc.