Hi, I've added some documentation to the patch I wrote for persistent undo. It's been a while since I've posted about this, so I'll recap the features:
1. New option 'undofile' causes Vim to automatically write out the undo history for the current session to a file located in the directory (ies) provided by the new 'undodir' option, and to automatically read back this undo history when the same file is opened again. 2. New commands :wundo and :rundo allow you to manually write and read undo files, respectively. The attached diff was created against SVN version 1658. Once you patch your source, you'll want to add 'set undofile' to your vimrc to enable the functionality. Then make some edits to a file, quit Vim, and open the file again - you will still be able to undo your edits. I've been using this patch in my Vim for close to a year now, and its a real productivity booster. Working on other machines without undo persistence has become fairly difficult for me, as I'm so used to being able to revert changes I've made to (for example) a LaTeX file after exiting Vim, creating a PDF, and noticing a mistake. Please try this patch! I think you all and the rest of the Vim community will really like this functionality. Thanks, Jordan Lewis --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
persistent_undo.diff
Description: Binary data
