[comp.unix.wizards] remote access to edit buffer

eliot@phoenix.Princeton.EDU (Eliot Handelman) (10/19/89)

If I'm editing a buffer and for some reason (say, my modem flakes out)
I have to switch terminals, is there some way to get a hold of the buffer
from another shell? Related question is, if I kill the edit job how do I
ensure an autosave? What's going on when vi autosaves when the machine
crashes?

Eager to have these mysteries resolved, I am faithfully yours.

maart@cs.vu.nl (Maarten Litmaath) (10/20/89)

eliot@phoenix.Princeton.EDU (Eliot Handelman) writes:
\... if I kill the edit job how do I
\ensure an autosave? What's going on when vi autosaves when the machine
\crashes?

kill -HUP or -TERM will make vi preserve the buffer.
From inside vi the `:pre' command will.
When the system has crashed and is rebooted, /usr/lib/ex*preserve is
run from /etc/rc to save ex/vi temporaries in /tmp, after which /tmp
normally is cleared.
-- 
A symbolic link is a POINTER to a file, | Maarten Litmaath @ VU Amsterdam:
 a hard link is the file system's GOTO. | maart@cs.vu.nl, mcsun!botter!maart