|
|
|
|
|
by _7tgr
894 days ago
|
|
> since vim's visual modes always extend Certainly an interesting point! Maybe this'll be addressed better once nvim adds multiple cursors (it's on the roadmap). Though I've never found this to be annoying, or felt I really wanted multiple cursors while doing something; maybe I'm inexperienced with using them. For complex/wide-ranging edits I usually record an edit action at a particular instance of what I wanna change as a macro and generalize that if necessary by composing it with more macros, instead of editing everywhere at once in one fell swoop. I think it's just a different way of going about it (which happens to work more intuitively for me). > and you lose selections on going back to normal FYI: gv restores the prior visual selection; I'm not sure if this is what you meant |
|
But then for less wide-ranging edits it's invaluable, and also helps in vim-golfing :) vs. having to record a macro and jump around to repeat it
Good point re. gv, didn't mean "permanently lost", but rather lost=deselected (and not requiring a restore selection step).
For example, even entering insert mode, adding a symbol, and going back to normal, retains the selection. Or entering "extend selection" mode in Helix (which is like vim's Visual mode) and exiting it also retains the selection until you move your cursor with a selection-changing operation.