Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site ittatc.ATC.ITT.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!ittatc!yoda From: yoda@ittatc.ATC.ITT.UUCP (Todd C. Williams [Jedi Knight]) Newsgroups: net.unix-wizards,net.unix Subject: Vi bug: multi-line abbrev w/ ai set Message-ID: <1727@ittatc.ATC.ITT.UUCP> Date: Tue, 11-Mar-86 21:38:26 EST Article-I.D.: ittatc.1727 Posted: Tue Mar 11 21:38:26 1986 Date-Received: Thu, 13-Mar-86 08:02:46 EST Distribution: net Organization: ITT-ATC, Shelton Ct. Lines: 43 Xref: watmath net.unix-wizards:17162 net.unix:7356 I want to have an abbreviation that will print out the following 5 lines: main(argc,argv) int argc; char *argv[]; { } I want to put this is my .exrc file. I have already set autoindent in this file. The problem is that, with autoindent set, multiline abbreviations are tabbed in by autoindent, with (apparently) no way to stop this. I tried the obvious ^D's, but to no avail, even when lnext quoted. Can anyone help? EXAMPLES that do NOT work: THIS (in .exrc): set autoindent abbreviate aaaaa main(argc,argv)^M^Iint argc;^Mchar *argv[];^M^D{^M} PRODUCES: main(argc,argv) int argc; char *argv[]; { } adding additional ^D's, quoted or not, does not work. We are running 4.1bsd on a VAX-11/780. -Todd Williams -- +------------------------------------------------------------------------------+ | Todd C. Williams | "Summer blonds | | ITT Defense Communications | revealing tan lines, | | Nutley, NJ | I'll make more moves than | | {decvax, et al.}!ittatc!dcdvaxb!tcw | ALLIED VAN LINES!" | | I love to receive e-mail from anyone!| --from: "I wanna be a lifeguard" | | | by BLOTTO | +------------------------------------------------------------------------------+