Hi all, Description: Vim's restore session mechanism doesn't restore the buffer numbers properly. Buffer #1 is skipped and the buffers in Session.vim are appended to it, so they start at #2.
Version: 7.3.495 References to the same problem: http://larig.wordpress.com/2012/02/14/vim-sessions-and-the-missing-first-buffer/ Reproduce problem: vim a b :ls :mksession :qa vim -S :ls Possible solution: Add a workaround-function, say :bfrom1, that shifts all buffer numbers one position to the left if the first buffer is wiped-out. This fuction can then be called in Session.vim after wiping buffer #1: if exists('s:wipebuf') silent exe 'bwipe ' . s:wipebuf bfrom1 endif 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
