4 ms·
> But where are the AI features?? Gonna get left behind! Obviously vim doesn't need AI, but one feature I really wish vim had was native support for multiple c
by LexiMax 7mo ago
> But where are the AI features?? Gonna get left behind!
Obviously vim doesn't need AI, but one feature I really wish vim had was native support for multiple cursors.
It's the feature that lured me away to Sublime Text in the first place many years ago, and it's a pre-requisite for pretty much every editor I use these days, from VSCode to Zed.
There are plugins, but multicursor is such a powerful force-multiplier that I think a native implementation would benefit.
- sejje 7mo agoHow does it work?
- mystifyingpoi 7mo agoThe canonical answer to this request is as follows: if you need multi-cursor (or, worse, multi-cursor with mouse support) then you are doing something non-Vim way (aka: wrong way) and there is a better way to do it. If you need multi-cursor to do manual search and replace in text, then don't, just do automatic search and replace, maybe scoped to a block. If you need multi-cursor for refactoring or renaming a variable across entire source file, then don't, use LSP plugin (or switch to Neovim) and do the proper refactoring action. Sure, there are legit cases of using multi-cursor in Vim, but they are rare. So it's not worth to put it into Vim itself.
- riffraff 7mo agopersonally, I know I can use search and replace, but <ctrl-n>-n-n-c-replacement[0] is easier on my mind than the search&replace alternative [0] I've been using vim-multiple-cursors for years, it's abandoned but still works ok most of the time.
- bspammer 7mo agoDo you know about *? It puts the word currently under the cursor into the search history. So you can do *ciw, type your replacement, then n.n.n. to do the rest. Obviously LSPs are more powerful though.
- gjkliewer 7mo agoMulti cursor is on the neovim roadmap https://neovim.io/roadmap/ https://neovim.io/roadmap/
- WhyNotHugo 7mo agoFunny, I used multiple cursor a lot back when I used Sublime Text, but stopped needing them when I switched to Vim.
- ivanjermakov 7mo agoThere are plenty of ways to achieve workflows that can be done witg multiple cursors even in plain Vim: macros, :norm, visual blocks, :s, etc.
- stackbutterflow 7mo agoI'm curious to know what kind of editing you do that you need this so much?
- menaerus 7mo agoIt's a pretty useful feature when writing code.
- cmovq 7mo agoVim (kind of) has it though it doesn’t render the cursors: Ctrl-V, then move down the lines you want to edit, Shift-I to insert text on multiple lines at once.