When I select a section of text within a line, then indicate I want to substitute on that line with :s
, the result is that the entire line is affected.
In order to actually do what I intend, I have to add \%V
before and after the string I want to substitute within the selection, so that no other similar strings are substituted outside of the selection on that line.
Is there a way to configure Vim 8 to behave as I expect it to? That is, if I go to the trouble of selecting text, and I indicate that I want to substitute one thing for another, the substitution takes place within the selection by default.
:s
in visual-mode, but that could get clunky.