[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vim reporting a swap file



On Wed, Mar 09, 2005 at 08:26:08AM -0500, Kamaraju Kusumanchi wrote:
> On Wed, 09 Mar 2005 14:10:36 +0100, Bob Alexander <bob@ngi.it> wrote:
> > Each time I try editing my ~/todo.txt file vim (kvim) reports the
> > existance of a todo.txt.swp file which a sudo find / -name todo.txt.swp
> > cannot find ...
> 
> look for .todo.txt.swp
> the swap file name begins with a dot.
> 
> Furthermore, the swap file has to be deleted manually. Unless you do
> that, vim will always report about the presence of swap file.
> 
> Here is what I do
> 1) store the actual file with a different name
> 2) recover the file when vim prompts the existence of swap file
> 3) diff actual_file new_file
> 4) remove swap file (and delete duplicate files)
> 
> For more details, use
> :h recovery.txt
> in the vim window.
> 
> raju
> 
Using plain vim, the message even tells me if the file opened has been
modified in comparison to the swap file. If it wasn't, pressing 'd'
(IIRC) just deletes the swap file.

-- 
Andreas Rippl -- GPG messages preferred
                 Key-ID: 0x81073379

Attachment: signature.asc
Description: Digital signature


Reply to: