vim - Replace character and the characters before and after text with pattern -
i need replace character pattern characters before selected character need replaced, using search , replace function.
for instance: . has replace 1/2, hugo.ignatz becomes hug1/2gnatz.
how should go this?
if understood right, want this?
:%s#.[.].#1/2#g this replace x.y 1/2
Comments
Post a Comment