I had a problem with visually selecting and replacing a regex. When I select some text that does not contain the whole line and press: to bring the command line up and do something like
:s/T/t/
Then the first match of the string is performed (regardless of whether it is selected or not). So for example, I have text
Test Text here
and I visually select the word Text , then run the above replacement, in the end we get
Test Text here
what I do not want.
Any ideas on how to achieve the right result?
Edit: actual command line
'<,'>s/T/t/
default is vim when you click: with visual selection.
source share