Vi question
Anthony Shipman
als at bohra.cpg.oz
Thu Jun 28 17:07:21 AEST 1990
In article <2571 at awdprime.UUCP>, tif at doorstop.austin.ibm.com (/32767) writes:
> In article <13132 at ulysses.att.com> mab at ulysses.att.com (Muhammad Basit) writes:
> >I have a simple vi question. How do I substitute a character with the
> >newline character in vi? I tried '\n', '\\n', the ascii code etc but
> >it doesn't seem to work.
>
> Assuming that <r><ENTER> isn't what you want, type
>
> Qs/search-pattern/\<ENTER>/<ENTER>vi<ENTER>
I have always used : to get the ex commands and the behaviour is different.
When using : the \<ENTER> doesn't work, instead you could use ^V
:s/search-pattern/^V^M/
symmetrically, ^V doesn't work if Q is used to get to ex!
--
Anthony Shipman ACSnet: als at bohra.cpg.oz.au
Computer Power Group
9th Flr, 616 St. Kilda Rd.,
St. Kilda, Melbourne, Australia
D
More information about the Comp.unix.questions
mailing list