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.

- Christian

--
Christian J. Robinson <[email protected]> -- http://christianrobinson.name/

--
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