:1,135s/xxx/ctrl-Vctrl-M/g is how it is typed inQuote:> hello
> i use the substitution command:
> in vi to replace char strings.
> i have also used:
> in vi to get a similar result, limited to a certain range of the text.
> my question is:
> how would i replace a char string with a <cr> or newline?
> i.e. :g/xxx/s//<cr>/
> i have looked at manuals large and small and have not found the answer.
> thanks in advance
:1,135s/xxx/^M/g is how it looks