Path: utzoo!attcan!uunet!pilchuck!ssc!fyl
From: fyl@ssc.UUCP (Phil Hughes)
Newsgroups: comp.editors
Subject: Re: Yet another vi question
Message-ID: <1469@ssc.UUCP>
Date: 24 Sep 88 16:34:01 GMT
References: <260@tijc02.UUCP>
Organization: Slugland, USA
Lines: 22

In article <260@tijc02.UUCP>, djm408@tijc02.UUCP (David Marks         ) writes:
> How does one enter vi to edit a particular file, and upon entry pull
> in a template to use as a fill in the blank form? For example, let us say I
> want to create a report called myreport, and the standard template is stored
> in template.rpt. I tried the following (and variations thereof)

>      vi +'r template.rpt' myreport

We do something similar.  From our customer file (which is in the Progress
database system) we have a key which dumps you in vi with the boiler plate
of a letter and the cursor on the Dear ___ line.

The way I did it (which is written in Progress but could be in a shell
script) was to copy the boiler plate file to the new file and then enter
vi on the new file with +/^Dear/ 
Seems like a shell script like this would solve your problem.

Phil Hughes, SSC, Inc. P.O. Box 55549, Seattle, WA 98155  (206)FOR-UNIX
    uw-beaver!tikal!ssc!fyl or uunet!pilchuck!ssc!fyl or attmail!ssc!fyl

-- 
Phil    uunet!pilchuck!ssc!fyl