On Jan 6, 10:46 pm, h3xx <[email protected]> wrote:
> On Jan 5, 3:53 am, gbog <[email protected]> wrote:
>
> > Hi dear vimers,
>
> > I'm loosing undo history when opening multiple files split windows in
> > vim (with :sp). I think I loose the history when I'm leaving one file
> > to go to another.
>
> Hmmm... Do you mean when you :e a different file? Because that's
> normal.

Sorry, I was not very clear, you pointed the correct way. Actually,
here are the steps I do:

vi foo
[some edit]
:w
:Explore
[choose another file to edit]
:b foo [go back to foo]
u [doesn't work]

It is not related to split windows (vi actually keeps my history
when :Explore in another window).

So my real question was: Is there a way to keep the history on current
file when using :Explore to open another one?

> > It seems I do not loose it when I stay in same
> > window and switch buffer (with :b).
>
> This also seems normal. It seems like you're trying to open too many
> files in split windows. I'd recommend not more than two split panes
> per window [it just gets too cramped].
>
> Try using :tabe <file> to open new files and using the key command
> "gt" to switch between them.
>
> If that doesn't work, try checking the value of the number of undo
> levels (:set ul) and consider increasing it.
>
>
>
> > Is there an option to change somewhere or something the like? Reliable
> > undo history in vim is vital for us. (I do most of debugging like
> > this: flood the file with dirty echoes, find the offending line, undo
> > everything and fix.)
>
> > Thanks for your help.
>
> > Guillaume
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to