I have an nvi session that got interrupted, and I'd like to recover my edits.
When I type
vi -r, it tells me "no files to recover." But there is a recovery file in
/var/tmp/vi.recover, and when I run
strings on that file, I can see that it contains text from the interrupted session. So if I can point nvi to that recovery file, I should be able to recover my edits.
However, there appears to be no (documented) way to specify a recovery file. The -r option does not take any parameters of its own; the only thing that can follow it is the name of the original file. But since vi has apparently lost the association between the original file and the recovery file,
vi -r myfile just tells me, "No files named myfile, readable by you, to recover". How can I tell it to use a given recovery file? Thanks.