正在加载视频...

视频加载失败

Nvim vs Zed with 30k cursors

65,447 次观看 • 1 个月前 •via X (Twitter)

54 条评论

ADormantSakthi 的头像
ADormantSakthi1 个月前

Ahh yes I need to use 30k cursors

Loric Brevet 的头像
Loric Brevet1 个月前

Here is Kakoune with 300k selections.

justinmk 的头像
justinmk1 个月前

nice! Nvim still has a lot of baggage to remove (and low-hanging fruit) to improve editing speed; my multicursor work hasn't touched any of that, only focused on MC itself being fast.

Mikael Brockman 的头像
Mikael Brockman1 个月前

it's time to rewrite zed in rust

Vim Glamour 的头像
Vim Glamour1 个月前

Is this going to be available in neovim 0.13?

justinmk 的头像
justinmk1 个月前

yup

Artem Golubin 的头像
Artem Golubin1 个月前

It's almost instant for me in helix, 80k of short strings

justinmk 的头像
justinmk1 个月前

i'm sure Zed can fix whatever is happening here. and Nvim will be able to fix perf issues as we go along too. that's why architecture matters, it allows you to iterate.

Daniel Colascione 的头像
Daniel Colascione1 个月前

Are cursors here implemented like Emacs markers? An unsorted singly linked list? There was a patch to change to change them to a tree with much better asymptotic bounds but it didn't land. (In Emacs, point is literally a marker.)

justinmk 的头像
justinmk1 个月前

Nvim cursors use "marktree", an internal data structure that has nice things like bisect. > In Emacs, point is literally a marker. sadly, Nvim "primary" cursor is still separate. changing that would be a boil-ocean refactor :<

6thScythe 的头像
6thScythe1 个月前

50% of people hyped to the moon 49% of people don't get it 1% of people kakoune Personally I see this as monumental. Gaining some of the capabilities of kakoune/helix, with Neovim's built up (and incredibly hard to replace) plugin ecosystem is going to be incredible

Mark Tyrkba 的头像
Mark Tyrkba1 个月前

Don't test this in EMACS your computer is gonna blow up

Vitalii Diachkov 🇺🇦 的头像
Vitalii Diachkov 🇺🇦1 个月前

Proud to be neovim user

borrowck-novel 的头像
borrowck-novel1 个月前

Very cool. Why is Zed on the CPU and not on the GPU though?

justinmk 的头像
justinmk1 个月前

@ZH1YGD idk. i have a 2025 macbook air, maybe it doesn't have a H200?

borrowck-novel 的头像
borrowck-novel1 个月前

Tbh, I don't know how things work on mac, but on a regular laptop with integrated and dedicated GPU, I would assume that Zed was running on the integrated only. That's something sometimes desirable to reduce noise and battery consumption. I think it is worth it to ask someone knowlegdable with macs.

adam smielewski 的头像
adam smielewski1 个月前

pov: i'm trying to contribute a feature somewhere the maintainers: but what if the user has 30k cursors? this would impact performance

ᕦ( ͡° ͜ʖ ͡°)ᕤ 的头像
ᕦ( ͡° ͜ʖ ͡°)ᕤ1 个月前

This is epic! Great job 👏 A lean performant editor is the kind of editor that we will someday carry on a watch

Језда 的头像
Језда1 个月前

is this a block select or multi-cursor feature that is coming to Neovim?

justinmk 的头像
justinmk1 个月前

multicursor

Pobedie 的头像
Pobedie1 个月前

I tried to use zed but it gave me impression that it was vibe-coded. So many annoying little things dev would catch if they actually tested it. Many flows don't have proper error handling, sometimes you don't get any indication that an error happened. And vim mode is lackluster

@falcucci 的头像
@falcucci1 个月前

awesome.

Dipankar Das 的头像
Dipankar Das1 个月前

Yes bro neovim for the WIN

Petr Hurtak 的头像
Petr Hurtak1 个月前

Cc @rtfeldman :)

Gabriel 的头像
Gabriel1 个月前

Funny but if im making that many edits im using a macro or a regex.

justinmk 的头像
justinmk1 个月前

macros and interactive :substitute are excellent tools. multicursors are "interactive macros" with preselected placement. placing cursors removes the need for crafting a macro that must deal with text shifts caused by the edits. but yeah 30k is extreme.

Ye Yint Aung 的头像
Ye Yint Aung1 个月前

I thought zed would be faster

justinmk 的头像
justinmk1 个月前

it's extremely fast and low-latency for most editing tasks. but its multicursor handling probably can be optimized.

Aavtic 的头像
Aavtic1 个月前

How is that neovim?

Michael 的头像
Michael1 个月前

Not bad 👍

Afonso Franco 的头像
Afonso Franco1 个月前

When will the branch become public for us to test? :)

justinmk 的头像
justinmk1 个月前

this week. feedback/testing is very appreciated!

Tom 的头像
Tom1 个月前

Now try Helix

justinmk 的头像
justinmk1 个月前

i looked at Helix's implementation but can't be bothered to install it. y'all can compare to Nvim when this lands. though it's not totally equivalent, bc Nvim emits plugin-observable CmdAtom events for all user actions (Helix does not, even w/ the steele PR)

Језда 的头像
Језда1 个月前

interesting

Gazi Refatul 的头像
Gazi Refatul1 个月前

Which terminal emulator are you using?

justinmk 的头像
justinmk1 个月前

ghostty. p.s. Nvim supports the kitty multicursor protocol, so cursors look better in kitty.

Gazi Refatul 的头像
Gazi Refatul1 个月前

Ahhh good I use kitty. 🐱

Ramtin Abadi 的头像
Ramtin Abadi1 个月前

Interesting, I'll have that in mind whenever I need to have a 30k cursor

JSON x 的头像
JSON x1 个月前

buffering

Nick Bernstein 的头像
Nick Bernstein1 个月前

what a crazy way to use *vim. `:.,+30000!sed 's/old/new/g'`

Chris R 的头像
Chris R1 个月前

cursormaxxing

anil 的头像
anil1 个月前

how did you get that many cursors in vscode? is there a shortcut?

justinmk 的头像
justinmk1 个月前

cmd palette => "Add Cursors to Line Ends" this is a reminder that i know vscode better than most vscode users 😂

anil 的头像
anil1 个月前

haha. i didn’t realise u r neovim maintainer. thanks for responding. wow thats a whole custom command in vscode. i know vim better than vscode. never had to do this on vim, but im guessing its ctrl shift V for visual block and then G to go to the last line. and then I to edit. its super composable. on vscode i hold option and click where ever i want the other cussors to be. but one advantage with this is there doesnt need to have any obvious pattern on where the multi cursors need to be. if i have to do this on vim, maybe ill use a record or . command for repeating edits. is there a better way? is it possible to have multi cursors in random places on nvim?

justinmk 的头像
justinmk1 个月前

in Nvim you can place cursors with "Q" or ctrl-click. visual-block is nice but there are situations where multicursors are better, i have a demo planned.

anil 的头像
anil1 个月前

thank you. i didn’t know this. i just use visual blocks as multi cursors on nvim till now 😂😂

justinmk 的头像
justinmk1 个月前

well, the feature hasn't landed yet. will be in Nvim 0.13

nkxxll 的头像
nkxxll1 个月前

less is sometimes just more what should I say

justinmk 的头像
justinmk1 个月前

say less

Wade Mealing 的头像
Wade Mealing1 个月前

Only 100% ? Those are rookie numbers. you gotta pump those numbers up !

primordio 的头像
primordio1 个月前

Imagine this is what decides it…

0xthw7 的头像
0xthw71 个月前

how to fix neo-tree reliability n consistency?

justinmk 的头像
justinmk1 个月前

add more cursors

相关视频