logoalt Hacker News

helterskelteryesterday at 6:51 PM15 repliesview on HN

Up next for 0.13: multiple cursors! I have no idea what I'd do with this feature but it sounds intriguing.

https://neovim.io/roadmap/


Replies

w4rh4wk5yesterday at 7:23 PM

Multi cursor support in VSCode replaced 98% of my need for macros. Yes, macros are more powerful, but they are pretty easy to get wrong. With multiple cursors, it's far easier to spot where your inputs don't work out and adjust accordingly.

Multi cursor is the feature that increased my productivity the most across the board.

show 3 replies
Iridescent_yesterday at 7:06 PM

Kakoune has replaced many features with multicursor, including the sed-like commands (where you just select an area, search for patterns inside it to create the multiple cursors, then perform regular edits (which also means you can perform much more complex than simple replaces). It is really useful for refactors, e.g. even if you don't have any LSP (e.g. for plain text) you can easily rename symbols, reorder/select in log files, etc

steve_adams_86yesterday at 6:58 PM

I'm not sure how people typically use neovim, but in Zed I find multiple cursors (especially combined with multiple file buffers) extremely ergonomic for refactoring quickly and easily where tools like find and replace or simple renaming doesn't suffice. It lets you scan through and add cursors where you need them, then perform your edits across locations and even files all at once. It's so nice that it played a significant role in me keeping Zed early on despite it missing a lot of extensions I used in VS Code.

show 3 replies
alwillisyesterday at 10:19 PM

Looking forward to multiple cursors… but Vim/Neovim can already do some of the common use-cases for multiple cursors, like prepending (or appending) text to a bunch of lines using visual block mode [1].

Here’s a video example [2]:

[1]: https://neovim.io/doc/user/usr_10/#_visual-block-mode

[2]: https://www.reddit.com/r/vim/comments/jai57c/the_usefulness_...

eviksyesterday at 7:31 PM

You'd do text editing with it with the coolest feedback loop - immediately seeing the changes and what those changes apply to beforehand, that's different from having to repeat some macro multiple times

show 1 reply
willrshansentoday at 3:07 AM

Helix editor is based around that. Better than vim default imo

meekinsyesterday at 7:00 PM

Really excited about this! At least in Sublime Text I've found multiple cursors a really powerful tool for ad-hoc transformations on snippets of semi-structured text or instantly and visually applying the same edit on multiple similar lines.

keyletoday at 12:17 AM

Any chance regular vim will some day get multiple cursors? That's the one thing I miss.

themadsensyesterday at 7:26 PM

Whats with all the fuss over multicursor. How is this different from just using '.'

show 1 reply
qiineyesterday at 8:25 PM

"Image API: vim.ui.img"

Oh neat!

andrepdyesterday at 7:50 PM

Multiple cursors were the killer feature that got me to start using Sublime Text back in ~2010. Still an absolute staple of my text editing toolbox. Ctrl-D Ctrl-D Ctrl-D ...

tekawadeyesterday at 7:02 PM

Lookup helix tutorial. It’s pretty useful.

natasyesterday at 8:28 PM

one cursor for you one cursor for claude code :)

scuff3dyesterday at 7:00 PM

It's funny because I miss this one all the time. I got use it in Sublime and VScode before making the jump to Neovim. I know you can get similar functionality from macros and what not, but it's just not the same.

luxurytentyesterday at 9:36 PM

LLMs: Look, I can write code! neovim users: hold my beer, multicursor is here!