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

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -