vi question - (nf)
tierney at fortune.UUCP
tierney at fortune.UUCP
Thu Mar 22 14:05:54 AEST 1984
#R:houxz:-71000:fortune:26900032:000:558
fortune!tierney Mar 21 17:43:00 1984
***** fortune:net.unix / houxz!halle1 / 6:28 am Mar 20, 1984
Is there any way to switch to a file, do some editing, then come
back to the original file? I know that :n file2 file1 will work,
but that can get inconvenient when long paths must be typed in.
----------
Why, of course there is!
try:
(edit, edit, edit, etc. file 1)
:w #save file 1 changes
:e file2 #edit file2
:e# #edit the alternate file (file 1)
:e XXX edits XXX
:e# edits the alternate file
and you can switch back and forth.
Wonderful.
charlie tierney
More information about the Comp.unix
mailing list