Article View: comp.editors
Article #1395Re: <CR> in VI macros
From: Michael SamChee
Date: Wed, 07 Oct 1992 16:30
Date: Wed, 07 Oct 1992 16:30
27 lines
1410 bytes
1410 bytes
In article <1992Oct7.010920.19165@ennews.eas.asu.edu>, sridhar@enuxhb.eas.asu.edu (Sridhar Venkataraman) writes: > mschee@bcarh600.bnr.ca (Michael SamChee) > writes on comp.editors: > > )Hi, > ) > )Example > )------- > )- first, edit a file: "vi file1" > )- then from within file1, edit another file: ":!vi file2" > ) > )Problem > )------- > )Write a macro that would "pop" the user from file2 back to file1 > )in *one* keystroke. > > What is it that ":e file1" and ":e#" don't do as opposed to spawning a > process because of which you have lost access to the named buffers, > search words etc... The answer is really in the manual. Ofcourse you > can write macros like: What you suggest is true. But what I *really* want to do is to invoke TAGS from within a vi session, ie, ":!vi -t identifier" and not ":!vi file" as given in the example above. Sorry, for giving a misleading example. Michael.
Technical Details
Message-ID:
<1992Oct7.163036.7606@bnr.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!cunews!nrcnet0!bnrgate!bcars267!bcarh600!mscheeReferences:
<1992Oct6.213438.11555@bnr.ca> <1992Oct7.010920.19165@ennews.eas.asu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!cunews!nrcnet0!bnrgate!bcars267!bcarh600!mschee From: mschee@bcarh600.bnr.ca (Michael SamChee) Subject: Re: <CR> in VI macros Message-ID: <1992Oct7.163036.7606@bnr.ca> Sender: news@bnr.ca (usenet) Nntp-Posting-Host: bcarh600 Organization: Bell-Northern Research, Ottawa, Canada References: <1992Oct6.213438.11555@bnr.ca> <1992Oct7.010920.19165@ennews.eas.asu.edu> Date: Wed, 7 Oct 1992 16:30:36 GMT Lines: 27