Path: utzoo!utgpu!watmath!att!pacbell!ames!rex!ginosko!uunet!ncrlnk!adds!tanya From: tanya@adds.newyork.NCR.COM (Tanya Katz) Newsgroups: comp.sys.att Subject: vi macro with carriage return Keywords: vi macro interpret control char Message-ID: <1127@adds.newyork.NCR.COM> Date: 7 Aug 89 18:38:39 GMT Organization: Applied Digital Data Systems Lines: 32 I am trying to map some keys in vi on the Unix-PC and am having a problem that seems peculiar to this machine's version of vi. 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 This works fine on various flavors of unix-vi, but on the Unix-PC, the characters appear on the vi command line & they just sit there waiting for me to press return. Anyone know what I'm doing wrong here? Thanks, Tanya #-------------------------------------------------# | Tanya Katz (516) 231-5400 x430 | | | | ...uunet!ncrlnk!adds!tanya | | tanya.katz@adds.newyork.ncr.com | | | | ADDS Inc, 100 Marcus Blvd, Hauppauge, NY 11788 | #-------------------------------------------------#