jhv@houxu.UUCP (James Van Ornum) (03/21/84)
To toggle between two files during one session with vi: vi <first filename> ... (editing of first filename) :e <second filename> ... (editing of second filename) :e # (will edit first filename) ... :e # (will edit second filename) ... etc. ----------------------- James Van Ornum, AT&T Bell Laboratories, inhp4!houxu!jhv
wls@astrovax.UUCP (William L. Sebok) (03/22/84)
A great example of the use of toggling file names in vi is the use of the two files accessed by vi after a a (r)eply or (f)ollowup command from vnews. The first file is the temporary file which will become your reply/followup. To read this article file into your reply/followup temporary file give these commands. :n To go to the article file :e # To go back to the temporary file :$r # Read the article file into the original file. Now one has a temporary file which contains a copy of the original article. One can then edit it down to shape. I felt a great sense of accomplishment when I first figured this out. Unfortunately vi has no direct command (I am aware of) to read the "next" file. Thus the trick of going to the article file and back to the temporary file to make the article file the "previous" file. -- Bill Sebok Princeton University, Astrophysics {allegra,akgua,burl,cbosgd,decvax,ihnp4,kpno,princeton,vax135}!astrovax!wls
presley@mhuxj.UUCP (Joe Presley) (03/28/84)
>> A great example of the use of toggling file names in vi is the use of the >> two files accessed by vi after a a (r)eply or (f)ollowup command from vnews. >> :n To go to the article file >> :e # To go back to the temporary file >> :$r # Read the article file into the original file. Why go to all that trouble? Just say ":$r $A": $A is the name of the article file, as is documented in the vnews(1) man page. -- Joe Presley (mhuxj!presley, ihnp4!j.presley)
srini@ut-sally.UUCP (Srinivasan Sundararajan) (03/29/84)
>> A great example of the use of toggling file names in vi is the use of the >> two files accessed by vi after a a (r)eply or (f)ollowup command from vnews. >> The first file is the temporary file which will become your reply/followup. >> To read this article file into your reply/followup temporary file give these >> commands. >> >> :n To go to the article file >> >> :e # To go back to the temporary file >> >> :$r # Read the article file into the original file. >> >> Bill Sebok Princeton University, Astrophysics >> {allegra,akgua,burl,cbosgd,decvax,ihnp4,kpno,princeton,vax135}!astrovax!wls Unfortunately, doesn't work on our "vi" ! What I do is to just s(ave) the file while in vnews, and read it in into my tmp file using :r Articles