How to replace part of matching string in vim
巴扎黑
巴扎黑 2017-05-16 16:42:42
0
3
705

I use vim to process documents and want to replace a certain part of a word. What should I do?
Give an example, such as

This is a word.

I want to replace the word in word. with sentence while retaining .. How to do this?

Supplement

Maybe I didn’t make it clear. What I mean is, replace the word in word., but do not replace the word alone or worder.

巴扎黑
巴扎黑

reply all(3)
漂亮男人
:s/word\./sentence\./g
世界只因有你

:%s/word/sentence/gc

给我你的怀抱

:s/word./sentence./g

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template