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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -