Загрузка видео...

Не удалось загрузить видео

На главную

Nvim vs Zed with 30k cursors

65,566 просмотров • 3 месяцев назад •via X (Twitter)

Комментарии: 54

Фото профиля ADormantSakthi
ADormantSakthi3 месяцев назад

Ahh yes I need to use 30k cursors

Фото профиля Loric Brevet
Loric Brevet3 месяцев назад

Here is Kakoune with 300k selections.

Фото профиля justinmk
justinmk3 месяцев назад

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 Brockman3 месяцев назад

it's time to rewrite zed in rust

Фото профиля Vim Glamour
Vim Glamour3 месяцев назад

Is this going to be available in neovim 0.13?

Фото профиля justinmk
justinmk3 месяцев назад

yup

Фото профиля Artem Golubin
Artem Golubin3 месяцев назад

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

Фото профиля justinmk
justinmk3 месяцев назад

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 Colascione3 месяцев назад

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
justinmk3 месяцев назад

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
6thScythe3 месяцев назад

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 Tyrkba3 месяцев назад

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

Фото профиля Vitalii Diachkov 🇺🇦
Vitalii Diachkov 🇺🇦3 месяцев назад

Proud to be neovim user

Фото профиля borrowck-novel
borrowck-novel3 месяцев назад

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

Фото профиля justinmk
justinmk3 месяцев назад

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

Фото профиля borrowck-novel
borrowck-novel3 месяцев назад

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 smielewski3 месяцев назад

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

Фото профиля ᕦ( ͡° ͜ʖ ͡°)ᕤ
ᕦ( ͡° ͜ʖ ͡°)ᕤ3 месяцев назад

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

Фото профиля Језда
Језда3 месяцев назад

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

Фото профиля justinmk
justinmk3 месяцев назад

multicursor

Фото профиля Pobedie
Pobedie3 месяцев назад

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
@falcucci3 месяцев назад

awesome.

Фото профиля Dipankar Das
Dipankar Das3 месяцев назад

Yes bro neovim for the WIN

Фото профиля Petr Hurtak
Petr Hurtak3 месяцев назад

Cc @rtfeldman :)

Фото профиля Gabriel
Gabriel3 месяцев назад

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

Фото профиля justinmk
justinmk3 месяцев назад

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 Aung3 месяцев назад

I thought zed would be faster

Фото профиля justinmk
justinmk3 месяцев назад

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

Фото профиля Aavtic
Aavtic3 месяцев назад

How is that neovim?

Фото профиля Michael
Michael3 месяцев назад

Not bad 👍

Фото профиля Afonso Franco
Afonso Franco3 месяцев назад

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

Фото профиля justinmk
justinmk3 месяцев назад

this week. feedback/testing is very appreciated!

Фото профиля Tom
Tom3 месяцев назад

Now try Helix

Фото профиля justinmk
justinmk3 месяцев назад

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)

Фото профиля Језда
Језда3 месяцев назад

interesting

Фото профиля Gazi Refatul
Gazi Refatul3 месяцев назад

Which terminal emulator are you using?

Фото профиля justinmk
justinmk3 месяцев назад

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

Фото профиля Gazi Refatul
Gazi Refatul3 месяцев назад

Ahhh good I use kitty. 🐱

Фото профиля Ramtin Abadi
Ramtin Abadi3 месяцев назад

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

Фото профиля JSON x
JSON x3 месяцев назад

buffering

Фото профиля Nick Bernstein
Nick Bernstein3 месяцев назад

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

Фото профиля Chris R
Chris R3 месяцев назад

cursormaxxing

Фото профиля anil
anil3 месяцев назад

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

Фото профиля justinmk
justinmk3 месяцев назад

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

Фото профиля anil
anil3 месяцев назад

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
justinmk3 месяцев назад

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
anil3 месяцев назад

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

Фото профиля justinmk
justinmk3 месяцев назад

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

Фото профиля nkxxll
nkxxll2 месяцев назад

less is sometimes just more what should I say

Фото профиля justinmk
justinmk2 месяцев назад

say less

Фото профиля Wade Mealing
Wade Mealing3 месяцев назад

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

Фото профиля primordio
primordio3 месяцев назад

Imagine this is what decides it…

Фото профиля 0xthw7
0xthw73 месяцев назад

how to fix neo-tree reliability n consistency?

Фото профиля justinmk
justinmk3 месяцев назад

add more cursors

Похожие видео