News for hackers. Stuff that matters.
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.
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.
Re:Vim Racer by dools on Monday August 26, 2024 @07:04PM (#41363073)
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 :)

Re:Vim Racer by chamomeal on Monday August 26, 2024 @09:28PM (#41363839)
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.

Re:Vim Racer by vim_racer on Tuesday August 27, 2024 @02:01AM (#41364906)
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!
Re:Vim Racer by vim_racer on Monday August 26, 2024 @06:44PM (#41362951)
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

Re:Vim Racer by vim_racer on Monday August 26, 2024 @09:38PM (#41363888)
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.