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

Re: restore buffer numbers after 'vim -S', a workaround?

Expand Messages
  • Daan van Rossum
    ... You re right. But still: Using buffer numbers (B#s) is a very convenient way to work on many files. It s so good to know where you left stuff, without
    Message 1 of 3 , Apr 23, 2012
    • 0 Attachment
      > AFAIK buffer numbers are not meant to persist between sessions, even
      > efter ":mksession" ":quit" "vim -S" — if you've used :bwipeout there
      > are "holes" in the list of buffer numbers; after reload those holes
      > are not preserved.
      >
      > What is supposed to be preserved are buffer names (and full paths
      > for buffers whose 'buftype' is not "nofile") and windows.
      >
      > Best regards,
      > Tony.

      You're right.

      But still:
      Using buffer numbers (B#s) is a very convenient way to work on many files. It's so good to know where you left stuff, without having to search for it first.
      Having to re-learn the B#s after a session restore is a pain.

      Is there a chance one could reorganize B#s at all within a live session (e.g. within the Session.vim script)? Or are the B#s so fundamental that allowing them to change would involve big code changes?

      Best,
      Daan

      --
      You received this message from the "vim_dev" 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
    Your message has been successfully submitted and would be delivered to recipients shortly.