Article View: comp.editors
Article #3321Yet another vi question
From: David Marks
Date: Wed, 21 Sep 1988 16:50
Date: Wed, 21 Sep 1988 16:50
32 lines
1858 bytes
1858 bytes
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
It thinks that I want to edit two files (template.rpt, and myreport) and says
so, but somehow while building the buffer it core dumps! I also tried putting
"r template.rpt" in the EXINIT environment variable and/or in the .exrc file. It
still doesn't work.
I would like to do this so that I can automate a reporting system we use for
software modifications/bugs by giving developers vi to edit the report while
forcing them to use the template (no flames here please! They can always
erase the template if they don't want it with ":1,$d". :-) )
-----------------------------------------------------------------------------
#include <standard/disclaimer.h>
LIFE IS NOT A MALFUNCTION! - Number 5
Pony Express: | Electric Avenue:
============= | ================
|
David J. Marks | ...!mcnc!rti!tijc02!djm408
Texas Instrument |
M/S 3520 | Ma Bell:
Erwin Highway/P. O. Drawer 125 | ========
Johnson City, TN. 37605 |
| 615-461-2074
Technical Details
Message-ID:
<260@tijc02.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!gatech!mcnc!rti!tijc02!djm408Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!gatech!mcnc!rti!tijc02!djm408 From: djm408@tijc02.UUCP (David Marks ) Newsgroups: comp.editors Subject: Yet another vi question Message-ID: <260@tijc02.UUCP> Date: 21 Sep 88 16:50:25 GMT Organization: Texas Instr., Johnson City TN Lines: 32