Hi Jordan,

just my thoughts:

Jordan Lewis wrote:
> 2. Added 'undofile'/'udf' option that toggles automatic undo file  
> writing and reading. If a file's checksum changed since the last time  
> it had an undo file written for it, Vim will silently (or loudly, with  
> verbose > 0) ignore the undo file when editing the file.

Why do you use checksum? For large files, this could take very long. How about
mtime or some other timestamp of the filesystem?

Is it possible to exclude some files from undo saving?

> Things to note:
> 3. The undo files are saved in a binary format. I have put some simple  
> safety checks in the unserialization function, but if you edit the  
> undo file, there is a high likelihood that Vim will choke.

Reasoning for using a binary format? If the undo file is shared between systems
that use different binary representation, things will probably go havoc.

Without having looked into it, I guess the undo parts contain text that has been
undone plus some extra information such as location and time, all of which could
be represented in a text format.

Cheers,

-- 
Andreas.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui