Monday, April 9, 2012

Re: Swap file already exists

On 2012-04-09, AK wrote:
> I just want to comment that I find the 'swap file already exists'
> thingy to be very un-userfriendly. I think it would be immensely more
> useful if it first showed a text-only diff of the file and swap file,
> and then only gave the choices.

I don't think diffing the two automatically by default would be a
good idea. It can take a long time to diff large files.

> 2. Once I choose to open the file, why is there no built-in way to
> compare them, and to delete the swap file?

Diffing the two is pretty easy. Just use whatever method you
usually use for comparing your editing buffer with the on-disk
version, e.g.:

1. :DiffOrig
2. :w !diff "%" -

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: