News for hackers. Stuff that matters.
Re:Porn, Zen, and .vimrc by imron on Saturday October 17, 2020 @05:47AM (#24808835)
> One thing I never understood is why Vim bindings are a big gain when you have a mouse.

Vim bindings are a gain because you don’t have to use the mouse.

Re:Porn, Zen, and .vimrc by m_mueller on Saturday October 17, 2020 @06:36AM (#24809024)
I've yet to find a study that would validate that claim.
Re:Porn, Zen, and .vimrc by gnur on Saturday October 17, 2020 @08:47AM (#24809558)
The gains from vim over using the mouse is mainly muscle memory for me.

I can comment out a function/block/line from anywhere in the function without looking at either the screen or the keyboard. And I do it without consious effort.

You probably use keyboard shortcuts to go to the end/start of the line anyway, if you expand that to all the vim movements that's what you gain. Adding composition and macros are just the icing on the cake.

Re:Porn, Zen, and .vimrc by RealStickman_ on Saturday October 17, 2020 @06:49AM (#24809067)
I think this can largely be attributed to preference. I have my hands on the keyboard anyways when I write code, so I find it easier to just move with keys instead of grabbing the mouse. For bigger, espacially vertical movements, I usually grab my mouse, unless I know the line I have to jump to. In that case using the movement keys would be faster as well.