- In order to replace a word with a newline and some other text:
1,$s/Mode/Mode,\\^M UpdateMinMaxDb=1, OverWrite=1, HxRG=SHxRG/g
where Mode is the word you want to replace. To get the ^M, hold down Ctrl-V
and press m
- To replace a set of characters with the same characters (along with additional ones):
1,$s/Mode[...]/&/g
where Mode and the three charcters following it is the expression you want to
replace. & will contain Mode+the 3 additional characters that follow it.
|