←back to thread

214 points m4xshen | 1 comments | | HN request time: 0.256s | source
Show context
BrouteMinou ◴[] No.44023003[source]
I always find it funny when people say to not repeat h-l, w-W keys for horizontal movement.

No way I am starting to count how many characters there are in front of my cursor just to have the satisfaction of typing "31-l"...

I am totally going to spam some 2w 3w llll until I reach the desired position.

replies(11): >>44023032 #>>44023106 #>>44023900 #>>44024062 #>>44024131 #>>44024351 #>>44024757 #>>44025313 #>>44025477 #>>44025764 #>>44025950 #
WhyNotHugo ◴[] No.44024131[source]
At first I had to count characters. Over time, it becomes intuitive. In the same way that if someone holds up three fingers you don't count "one, two, three", you immediately perceive that they are holding up three fingers.

For numbers under 10, I usually hit the right amount. For numbers around 30, I might be off by one to five, but move on from then. When I want to remove similar prefixes from multiple non-consecutive lines, I might use things like 31x, go to the next instance (maybe continuing a search with n), and press period.

Honestly though, if you're moving forward 31 characters, there's often an easier approach, like 4w (move forward three Words). Again, at first I had to consciously think about which combination to use. Over time it becomes second nature.

I still use jjjj sometimes. It's imperfect, but at least it's the human that's the limiting factor, and not the software.

replies(1): >>44025797 #
1. ramses0 ◴[] No.44025797[source]
A big help for me is H/M/L - mnemonic high/middle/low.

Moves to the top/bottom/middle of the viewport, and the. I'll jjjj/kkkk away! (or probably just search, mostly).