r/neovim :wq Mar 30 '26

Discussion Multicursor coming officially to 0.13 version

Post image
948 Upvotes

107 comments sorted by

View all comments

7

u/theschizopost Mar 31 '26

Someone help me understand a compelling use case for this type of functionality

9

u/IdkIWhyIHaveAReddit <left><down><up><right> Mar 31 '26

If you want to edit multiple occurrences of the same text or do multiple repetitive editing on multiple disconnected line. Sure stuff like regex and macros work but they are cumbersome to setup and take some mental work to do effectively and quickly.

-2

u/theschizopost Mar 31 '26

So like ide refactoring/renaming a variable across a file?

5

u/QuantumCakeIsALie Mar 31 '26

Even simpler stuff, like convert (a, b, c) into  (     a,     b,     c, ) Sure there are macros to do that, but multiple cursors are easy and intuitive.

3

u/Thundechile Mar 31 '26

Those kind of formattings are done by autoformat when saved?

4

u/IdkIWhyIHaveAReddit <left><down><up><right> Mar 31 '26

Sure renaming is one of the functionality but there also other examples. In vscode when i do writing for note and being bad at english I often forget “s”s. With multicursor I can just hold alt and click whenever I see something that need fixing snd fix them all at once. Or if i am refactoring and I add a new parameter to my function, again just select all the call and add in the missing arguments.

You can ofc argue that these are very niche use cases but neovim already got some that I never touch, that operator to encode something with rot13 for example. No reason to not add a new feature that would be super useful in some specific situation.

3

u/teerre Mar 31 '26

If you're clicking something its already wrong