On 22/10/09 16:47, Matt Wozniski wrote: > > On Thu, Oct 22, 2009 at 7:50 AM, fvw wrote: >> >> Hello all: >> I use vim and open a lots bufs to edit. >> The bufnr is up to 10, when i use :bw num to del buf 1-9 >> When i open a new file the buf num is 11? >> How can i reuse the buf num 1-9 ?- >> Thanks.
You call that a lot? My buffer numbers (keeping buffer names from one Vim session to the next via viminfo) are up to 226 at the moment. > > You can't. Buffer numbers are never reused. ...in the same session. After closing Vim and reopening it (without a filename argument, and with the % flag in 'viminfo'), your buffer list will be renumbered, so that the numbers for wiped-out buffers will _then_ be reused. But of course no buffer can be expected to "reliably" keep its number over a restart of Vim. > > ~Matt Best regards, Tony. -- Sex is a natural bodily process, like a stroke. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
