Re:Vim Racer
by ccvannorman on Monday August 26, 2024 @06:27PM
(#41362859)
:4 does not go to line 4.
Or at least, the line numbers are not correct.
No thanks, I'll pass.
[ Parent
| on HN ]
Re:Vim Racer
by thot_experiment on Monday August 26, 2024 @06:37PM
(#41362916)
It's using relative line numbering, at least for me this is how I've had vim set up for the last 10 years. It makes commands like 10j easier to do because you can just look to the side and see how many lines away the target is.
I've never even heard of relative line numbering! I just thought it was broken.
Re:Vim Racer
by ccvannorman on Monday August 26, 2024 @07:24PM
(#41363177)
Same!
I guess I can see the appeal; it's not for me though, I'm swimming in the local minimum of absolute line number dependence :)
That’s so funny, I love relative line numbers, but I had no idea about half the tips in here.
I use relative numbers while in normal mode, and absolute numbers in insert mode. That way you get easy vertical jumps, but you still have a sense of your line numbers.
Another variation on that is relative in both modes, but my current cursor line has the absolute. That's what I tend to roll with!
Another user mentioned this too. I'll be adding settings to let users turn relative lines off.
Re:Vim Racer
by ccvannorman on Monday August 26, 2024 @07:25PM
(#41363183)
is the vimrc exposed?
For maximum vimness you could let players mod an empty vinrc from start
I think the library just has key bindings, so it wouldn't even have a vimrc.
The library seems great at the time, but I might need to look into alternatives in the future.
Re:Vim Racer
by JoshTriplett on Monday August 26, 2024 @10:23PM
(#41364080)
A full vimrc would allow blatant cheating, such as preprogramming commands to do exactly the movements you need for a given case.
It sounds like allowing toggles for a few key options would probably satisfy most people while keeping the spirit of the exercise.