> Sometimes even after I save my changes to a file using :w, I > can undo these changes (using u). But sometimes I cannot undo > after I have saved the file with :w. In both cases, I don't > close the file or exit vim.
A couple possibilities occur to me, some of which stem from the ambiguity of what you may (or may not) mean by "I don't close the file". - you're closing all windows open on the buffer (though the buffer is still loaded), so you can readily switch back to the buffer. This loses the undo history unless you have 'hidden' set (to remember things like undo history) - some plugin/script is munging with your 'undolevels' option which you might be able to check after it happens with ":verbose set undolevels?" - something (possibly a plugin) is reloading the buffer after it's been saved which would make vim treat it as a "new" file with no undo history. I'm not quite so sure how to check if this is happening, other than to scan through scripts (check the output of ":scriptnames" Those are my first guesses -- I use vim a *lot* and haven't ever unexpectedly lost undo-history. (I've lost it because one of the above items, but those were expected, even if not always intentional). If none of the above help resolve the issue, perhaps posting your [g]vimrc file(s) will make something stand out. It would also help to know if it's only certain file-types (just Fortran or Prolog files), or all files. Since it's happening to one of your compatriots as well, there may be some element of commonality between your [g]vimrc files or something set up in a system-wide script that is hosing you both but not the rest of the vim world. -tim --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
