Gautam Iyer wrote:
On Wed, May 17, 2006 at 07:40:51PM +0200, A.J.Mechelynck wrote:

Gautam Iyer wrote:

On Wed, May 17, 2006 at 10:31:55AM -0400, James Vega wrote:

On Tue, May 16, 2006 at 11:19:57PM -0500, Gautam Iyer wrote:

Now when you type "vim /tmp/bar" it reports that a .swp file is found
and asks you about recovery. However when you press "R" for recovering
the file, vim complains saying it can not find the swap file (probably
because vim looks for the swap file in /tmp, instead of in /tmp/foo).
This appears to be fixed in vim7.
I'm using Vim-7.017, and it's not fixed! Is there a more recent version?
No, that's the current patchlevel. However:

- The 'directory' option (q.v.) directs where the swap file shall reside
- If you are reopening it with a different login name, there could be a permissions problem.

Well, I certainly did not open the file with a different log in name.
Also regardless of the 'directory' setting, I find it very strange (i.e.
bug like) if Vim first asks me if I want to recover a file, and when I
say yes, Vim tells me it can't find the swap file anymore ...

:)

GI

Another possibility: Did you by any chance have a zero-length swap file? Vim creates the swap file when you open a non-readonly edit file, but the swapfile remains zero-length until you make a change in the file.


Best regards,
Tony.

Reply via email to