Re:Show HN: Subvim – Vim customized to be like SublimeText
by caioariede on Saturday April 06, 2013 @04:46PM
(#5504986)
Note that this will replace over the entirely lines even if it's a blockwise selection.
So you might consider using :'<,'>s/\%Vthis/to that/g
Re:Show HN: Subvim – Vim customized to be like SublimeText
by weaksauce on Saturday April 06, 2013 @10:41PM
(#5505895)
It might be a setting or something but it definitely doesn't do that on my machine or the linux machine I have in the cloud.
this ipsum dolor sit amet
this ipsum dolor sit amet
this ipsum dolor sit amet
this ipsum dolor sit amet
this ipsum dolor sit amet
select the middle 3 lines and do what I said will give you:
this ipsum dolor sit amet
to that ipsum dolor sit amet
to that ipsum dolor sit amet
to that ipsum dolor sit amet
this ipsum dolor sit amet
:'<,'>s/this/to that/g
I think vim does that automatically when you have a selection active and hit :