neovim icon indicating copy to clipboard operation
neovim copied to clipboard

basics: vim commands instead of multiple cursors

Open practicalli-johnny opened this issue 1 year ago • 0 comments

Multiple cursors is a visual way to change multiple lines or matching patterns concurently.

There are many ways to achieve similar results with vim-style editing which are useful to learn

Changing a pattern in multiple places

gn textobject - e.g. gnw to select next word

change the next found occurrence with cgn, skip the next matching word with n, apply the change with . - it seems that cgn is dot-repeatable.

Neovim 0.10 will be introducing multiple cursors feature.

Purists claim there is no need for multiple cursors, as vim can do everything, but finding examples can be challenging.

practicalli-johnny avatar Apr 15 '24 15:04 practicalli-johnny