Replace and Increment
1
:let i=1 | g/Being Replaced/s//\="TheString".i."TheString"/ | let i=i+1
Only Replace the first match each line when there are multiple matches in one line.
 This post is licensed under  CC BY 4.0  by the author.
1
:let i=1 | g/Being Replaced/s//\="TheString".i."TheString"/ | let i=i+1
Only Replace the first match each line when there are multiple matches in one line.