Vim Multi Cursor Is Completely Unnecessary But It's Awesome

preview_player
Показать описание
I've been meaning to check out the Vim multi cursor plugin for quite awhile but I didn't bother to do so until now, and you know what it's actually a really cool plugin that allows you to work with vim in a completely different way. Now I know you don't need it in Vim but that doesn't mean that it's not cool, one of the awesome things about Vim is that you can use it in whatever way you feel.

==========Support The Channel==========

► BTC Wallet Address: 1Aokiv3pFQXUEmh2LbzZQAwxMvq6bpT2UN

► ETH Wallet Address: 0x80451867c86bdf08c3888d407c1e3fcb6add61ed

► LBC Wallet Address: bLRN9fm17sCexKfgbYqmMj5xskZF2ogpEh

==========Affiliate Links==========

==========Resources==========

=========Video Platforms==========

==========Social Media==========

==========My Repos==========

==========Credits==========
🎨 Channel Art:
All my art has was created by Supercozman

🎵 Ending music

DISCLOSURE: Wherever possible I use referral links, which means if you click one of the links in this video or description and make a purchase we may receive a small commission or other compensation.

Рекомендации по теме
Комментарии
Автор

I always hear it is unnecessary to use multi cursor in vim, but not always. There is instances where it just efficient, fast, and makes more sense

Yassinebridii
Автор

vim-visual-multi is way better (faster, more features) than vim-multiple-cursors. Keep in mind that I contributed to vim-multiple-cursors (alt+n, g+ctrl+n that was me). Switch to vim-visual-multi, now! 😄🥰

antoinemadec
Автор

If you're a programmer, there are times when using a multicursor is highly useful. Not often, but sometimes it is key. Sublime Text has this, so I usually use it if I'm doing programming.

AkamiChannel
Автор

for those asking how to do it in vanilla vim:

command
---
cursor on word
*:%s//replacement/g

move command
---
cursor on word
*Nciw
write your new word
N to move to the next occurrence
. to repeat the change

mapping
---
nnoremap <F12> *:%s//

press F12, type the new word (no deleting necessary), then enter. bring the previous word up to modify with <c-r><c-w> (or add it to the mapping if you want it there by default).

btw, the above assumes set gdefault is in your vimrc, otherwise add /g<left><left> to the end.

for me, i'll usually change a word and only after that will i realize i want the change repeated everywhere. for that reason, my version applies the change AFTER i've made it to the word:

nnoremap <F12> u*N.:%s//<c-r><c-w><cr>

jamieg
Автор

As someone who comes from sublime, Vim Multi Cursor makes my life so much easier.

hellow
Автор

Do you have any video to do these in vannila vim?

thecastiel
Автор

Multi cursor is a great concept, right tool for the right task.

henninb
Автор

:%s/data/better_data/g this command seems much easier.

ironmanlifts
Автор

Hey Brodie, may I ask which window manager are you using in this video, please?

thinksiamallamacom
Автор

When I press <C-i> whole neovim freeze

ricardorien
Автор

Selection-based editors (like Helix) make much more powerful use of multicursor (technically, multiselection) than Vim can, though Vim can still do far more than non-modal editors.

Post-modern modal editors only ever act on the current selections (there's always exactly one primary selection, and zero or more secondary selections). Each selection is defined as an inclusive range of one or more characters (between the anchor and the cursor). Outside of Select Mode, the anchor moves to the same character as the cursor (whenever the cursor moves), so you normally have a one-character selection that is superficially identical to a regular block cursor in Vim (or any other editor (or plain textfield) that uses a block cursor).

carljosephyounger
Автор

What plugin do you use for the vertical column and number to be displayed?

brianvess
Автор

why it's Unnecessary, is there any faster way just with vim?

dulanjala
Автор

What's the key sorcout (3) (5) do?

jmjl