Loading ...
Sorry, an error occurred while loading the content.

Re: undo and buffers

Expand Messages
  • A. J. Mechelynck
    ... I think you can get it with :set hidden , but it s a setting I don t use myself and I know that it has side-effects. Read its help attentively (and follow
    Message 1 of 2 , Feb 28, 2006
    • 0 Attachment
      antoine wrote:
      > hello,
      >
      > I'm using multiple buffers switching between them with :bn! like
      > commands. My issue is when I save a buffer (:w) I can still go back to
      > the pre-save state but not if I switch to another buffer and back.
      >
      > ie. with more than one buffer loaded:
      > itest<ESC>:w<ENTER>u -> gives me the same state
      > but
      > itest<ESC>:w<ENTER>:bn!<ENTER>:bp!<ENTER>u -> undo does not work, the
      > "test" stay there.
      >
      > this is a bit of a pain for me and I was wondering if there was a way
      > to circumvent this behaviour?
      >
      > --
      > Antoine
      > http://delaunay.org/antoine
      >
      >
      >

      I think you can get it with ":set hidden", but it's a setting I don't
      use myself and I know that it has side-effects. Read its help
      attentively (and follow the links to other options or help tags) before
      using it.


      Best regards,
      Tony
      http://users.skynet.be/antoine.mechelynck/
    Your message has been successfully submitted and would be delivered to recipients shortly.