Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!hao!hplabs!hpfcdc!hpfcla!ajs@hpfcla From: ajs@hpfcla Newsgroups: net.unix Subject: Re: Vi bug: multi-line abbrev w/ ai set Message-ID: <43800031@hpfcla> Date: Mon, 17-Mar-86 15:04:00 EST Article-I.D.: hpfcla.43800031 Posted: Mon Mar 17 15:04:00 1986 Date-Received: Fri, 21-Mar-86 06:28:20 EST References: <1727@ittatc> Lines: 25 > I want to have an abbreviation that will print out the following 5 lines: > > main(argc,argv) > int argc; > char *argv[]; > { > } Off on a tangent: I have the sneaky suspicion that you are trying to save time writing programs (an admirable goal). But, unless you write a lot of quick little throwaways, you're either going to write some pretty abominable code, or you don't really want to stick in your .exrc all the stuff a good "starting point" should include. Instead, why don't you craft a reasonable "template.c" to suit your tastes, and just hide in vi the finger macro to read it in? For instance, my own "template.c", iteratively refined over time and including a number of commonly-used utility routines, is 176 lines long. "Pride in craftsmanship is a winning strategy." Alan Silverstein, Hewlett-Packard Fort Collins Systems Division, Colorado {ihnp4 | hplabs}!hpfcla!ajs, 303-226-3800 x3053, N 40 31'31" W 105 00'43"