News for hackers. Stuff that matters.
Re:The Efficiency of Vim by flykespice on Wednesday February 26, 2025 @10:44PM (#43191110)
'cw' is way faster, no need to enter visual mode (don't rely too much on it)
Re:The Efficiency of Vim by cbm-vic-20 on Wednesday February 26, 2025 @10:52PM (#43191165)
The power of the vi-family is that this generalizes consistently. Want to replace everything from here to the next comma? 'ct,TYPE STUFF HERE' I'm not a very accurate mouser, so with a GUI editor without sufficient vi-ness, that means I need to use the mouse to drag a selection, make sure I don't also grab the tiny comma, then start typing. So annoying.
Re:The Efficiency of Vim by koakuma-chan on Wednesday February 26, 2025 @10:58PM (#43191192)
I can't believe people actually use their mouse to select text.
Re:The Efficiency of Vim by bencornia on Thursday February 27, 2025 @01:46AM (#43191953)
> The power of the vi-family is that this generalizes consistently.

Absolutely! It takes learning relatively few command/motion combos before you are really cooking. The commands are fairly composable as well. I rarely find myself without being able to find a command that can't do what I want. To be fair it takes some time to learn all the commands but eventually you just forget about it and it becomes automatic.

Re:The Efficiency of Vim by koakuma-chan on Wednesday February 26, 2025 @10:48PM (#43191138)
Visual mode is way more practical because you don't always need to edit a word, you might need to edit a few words and/or things that are not words. I always use visual mode to see clearly what I'm changing.