Path: utzoo!attcan!uunet!cs.utexas.edu!ut-emx!ibmchs!auschs!awdprime!doorstop.austin.ibm.com!tif From: tif@doorstop.austin.ibm.com (/32767) Newsgroups: comp.unix.questions Subject: Re: Vi question Message-ID: <2571@awdprime.UUCP> Date: 15 Jun 90 20:13:56 GMT References: <13132@ulysses.att.com> Sender: news@awdprime.UUCP Reply-To: tif@reed.UUCP (/32767) Organization: IBM AWD, Austin, TX Lines: 14 In article <13132@ulysses.att.com> mab@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 isn't what you want, type Qs/search-pattern/\/vi This takes you to ex, which can handle this sort of thing. "vi" puts you back into vi. Paul Chamberlain | I do NOT represent IBM tif@doorstop, sc30661@ausvm6 512/838-7008 | ...!cs.utexas.edu!ibmaus!auschs!doorstop.austin.ibm.com!tif