Senior Software Engineer at Google working on Google Meet đ¨âđť Helping developers be more awesome đĽ author, speaker & nerd đ§đźââď¸ into JavaScript, TypeScript, Vim & pixelart â¤ď¸
Senior Software Engineer at Google working on Google Meet đ¨âđť Helping developers be more awesome đĽ author, speaker & nerd đ§đźââď¸ into JavaScript, TypeScript, Vim & pixelart â¤ď¸
which describes your problem. I'm pretty sure this used to work but they must've had a regression (but perhaps I'm wrong XD)
It looks like the current implementation is somewhat experimental. The flow you describe seems to work pretty well from normal mode. And if you want to add multiple cursors based on keyword search you need to:
cursor on top of something
cmd-d or gb to add another cursor
This seems to put Vim into visual mode (ready to operate on the selection which makes sense)
cmd-d or gb to continue adding cursors until you're done
Now you can perform an action in visual mode (delete, change, etc) or,
go back to normal mode with ESC and do any normal mode command keeping the multiple cursors
There's a feature in Vim that may solve your use case slightly faster than multiple cursors called Visual Block:
CTRL-V to change to visual block mode
j to select a rectangle of text downwards
I to insert or A to append, insert text and ESC
(The VSCode implementation seems to use multiple cursors under the hood anyway :D)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hmm I'd swear this used to work. đ I'm going vacation but I'll take a look when I'm back đ
Ok thanks ;). Have a nice holiday then đ
In fact, it works on normal mode and entering in insert mode would keep the multiple cursors.
Thank you! And you're right, I found this issue on their github repo:
github.com/VSCodeVim/Vim/issues/2439
which describes your problem. I'm pretty sure this used to work but they must've had a regression (but perhaps I'm wrong XD)
It looks like the current implementation is somewhat experimental. The flow you describe seems to work pretty well from normal mode. And if you want to add multiple cursors based on keyword search you need to:
cmd-d
orgb
to add another cursorcmd-d
orgb
to continue adding cursors until you're doneThere's a feature in Vim that may solve your use case slightly faster than multiple cursors called Visual Block:
CTRL-V
to change to visual block modej
to select a rectangle of text downwardsI
to insert orA
to append, insert text andESC
(The VSCode implementation seems to use multiple cursors under the hood anyway :D)