practicalli / neovim

Neovim, Conjure and LSP for Clojure development using Fennel configuration
https://practical.li/neovim/
Creative Commons Attribution Share Alike 4.0 International
21 stars 5 forks source link

vim commands instead of multiple cursors #45

Open practicalli-johnny opened 6 months ago

practicalli-johnny commented 6 months ago

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.