3 ms·
For the multiple selections feature, how is that different from vim's visual selection paired with additional commands? For example, in vim I typically visuall
by bern4444 5y ago
For the multiple selections feature, how is that different from vim's visual selection paired with additional commands?
For example, in vim I typically visually select a block and then run :s/foo/bar or hit > to indent etc
Is the flow on helix that different? Does it save a keystroke?
- dokem 5y agoI used to use multiple cursors in sublime, but I do find vims find/replace syntax to be better. Paired with a macro that fills out most of the find/replace command for word under cursor, I find it fast and flexible.
- bern4444 5y agoThe best part is, when you need to do that across multiple files that you can find with a :grep or :Rg command, its trivial. Populate the quickfix/location with grep (or ripgrep or silver searcher etc) and fire off a cdo with a :s/foo/bar/g and watch it run.
- archseer 5y agoIt's similar, but it's closer to kakoune or vis in that you get to visually select first, then edit everything at once. You can do the same things in vim, but there's no visual feedback: you have to undo and change your query. (Or do cgn, then . . . ) Here's a good example from vis: https://asciinema.org/a/41361 https://asciinema.org/a/41361