Path: utzoo!utgpu!watmath!att!dptg!rutgers!njin!princeton!njsmu!mccc!pjh
From: pjh@mccc.UUCP (Pete Holsberg)
Newsgroups: comp.sys.att
Subject: Re: vi macro with carriage return
Keywords: vi macro interpret control char
Message-ID: <478@mccc.UUCP>
Date: 9 Aug 89 17:10:08 GMT
References: <1127@adds.newyork.NCR.COM>
Reply-To: pjh@mccc.UUCP (Pete Holsberg)
Organization: The College On The Other Side of U. S. Route 1
Lines: 19

In article <1127@adds.newyork.NCR.COM> tanya@adds.newyork.NCR.COM (Tanya Katz) writes:
=If I map a key to something containing a ctrl-M or carriage return,
=the ^M gets echoed but not interpreted.  How can I tell vi to interpret
=the control characters?
=
=Eg:
=
=map N :w^M:n^M
=
=(where the ^M represents a ctrl-V followed by an M)
=maps the Shifted N to the sequence :w\n:n\n

Try ctrl-V followed by CR, perhaps even ctrl-V ctrl-V CR.

Pete

-- 
Pete Holsberg -- Mercer College -- Trenton, NJ 08690
...!rutgers!princeton!njsmu!mccc!pjh