On Fri, May 19, 2006 at 08:29:48PM +0200, A.J.Mechelynck 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 ...
>
> 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.

Nope! When I changed to actual directory of the file (and not the
symlink), vim recovered the file perfectly!

GI

-- 
'Worry' -- The interest you pay on trouble before it comes.

Reply via email to