On Jan 6, 9:40 pm, "Jeffrey 'jf' Lim" <[email protected]> wrote: > hi guys, I've recently been inspired to take a more serious look at my vim > workflow, and... this is one of the things that has been bugging me and I > would like to get it fixed (if at all possible. Hopefully possible!!!!) . I > did a brief google search for "mark vim history" - didnt find anything > useful. > > 1. "mark history" - is there a way to possibly mark history ("undo/redo") > states like how you can mark points in text? > > I do the following right now: > - "<esc> :w<enter>" when I want to save a "safe history state" for me to go > back to > - do many edits, test things out > - if I'm not happy or decide to abandon this group of edits, I roll back to > that last "safe history state" by hitting 'u' multiple times, constantly > keeping my eye on the status bar to find that ":w" state (no '[ + ]') > > I realize typing that out that it sounds like some sort of version control > might be the solution for this, but... seriously, that's just way too much > typing (not vim philosophy!!!), and overkill. > > 2. does anybody know the setting for how to keep the undo history when I > close a window? I work frequently with multiple buffers - and right now, > when I close a window or bring in a new file with ':e', I lose the history > of the current buffer. I would like to be able to keep the history when I > recall the buffer again. >
You've got good answers, but I would just like to take this opportunity to point out that our featured tip on the wiki currently is all about using undo/redo. It mentions both the plugins given to you as well as persistent undo. http://vim.wikia.com/wiki/Using_undo_branches -- You received this message from the "vim_use" 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
