i want to execute :normal gv | '<,'>s/2/1/g for last select text ,
don’t work
2222ASDASD
ASDASDAS
how to make this right
i want to execute :normal gv | '<,'>s/2/1/g for last select text ,
don’t work
2222ASDASD
ASDASDAS
how to make this right
:%s/\%V2/1 => apply substitution only in current or previous visual range
The key here is \%V (:h %V)