This sort of seems obvious now, but here's what worked:
:'<,'>s/aaa/bbb/g
Any comments on the use of %V in VsVim are appreciated.
Domanda
Using VsVim, I want to replace all instances of aaa
with bbb
in the visual text highlighted area.
I found a similar question, but specifically for VIM, not VsVim:
I've tried selecting the text, then typing
:'<,'>s/\%Vaaa/bbb/g
... but I get Pattern not found: \%Vaaa
I've also tried:
: s/\%Vaaa\%V/bbb/g
... with a similar outcome.
How do I replace all instances of aaa
with bbb
within the highlighted text?
Soluzione
This sort of seems obvious now, but here's what worked:
:'<,'>s/aaa/bbb/g
Any comments on the use of %V in VsVim are appreciated.