On Fri, Jan 7, 2011 at 3:51 PM, Jan Larres <[email protected]> wrote:

> Jeffrey 'jf' Lim <[email protected]>:
> >>> 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.
> >>
> >> Vim 7.3 has persistent undo, that should do what you want.
> >>
> > so are you saying that
> > 1. this is basically an "automatic" feature (in 7.3)
> > 2. there's no way to do this pre-7.3?
>
> If you just close the window, but keep the buffer loaded, the undo
> history will also be kept, even in older vim versions. Do you have the
> 'hidden' option set? The persistent undo feature in vim 7.3 is for
> keeping the history even if the buffer is unloaded, see the help for
> 'persistent-undo' in that case.
>
>
right! That's precisely the thing I was looking for!!! (I do not have it
set, apparently - I dont even know about the feature!)

thanks,
-jf


--
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."
    --Richard Stallman

"It's so hard to write a graphics driver that open-sourcing it would not
help."
    -- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228

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

Reply via email to