vi macro with carriage return

Pete Holsberg pjh at mccc.UUCP
Thu Aug 10 03:10:08 AEST 1989


In article <1127 at adds.newyork.NCR.COM> tanya at 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



More information about the Comp.sys.att mailing list