Christian J. Robinson wrote:

> If I'm editing an encrypted file then use the same Vim session to edit 
> a non-encrypted file, the saved undo information for the non-encrypted 
> file is garbled when it is read.
> 
> To reproduce, you need an existing, non-encrypted file that has undo 
> information saved, and an existing encrypted file (it doesn't matter 
> how 'cryptmethod' is set).
> 
> Start Vim:
>   vim -u NONE -U NONE -N -c 'set undofile' encrypted_file
> 
> Then do ":e otherfile" (where "otherfile" is the non-encrypted file 
> with previously saved undo information), and press 'u' a few times.
> 
> When this happens, all I have to do is ":qa!" and edit the 
> non-encrypted file again, and the undo information is properly read. 
> Unless I make the mistake of saving new changes to the non-encrypted 
> file--then the undo file becomes useless.

I'm glad you found this problem.  It's easy to fix.

-- 
"Software is like sex... it's better when it's free."
                -- Linus Torvalds, initiator of the free Linux OS
Makes me wonder what FSF stands for...?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui