Wednesday, November 2, 2016

Can I count on buffer numbers never being re-used within a session?

I realize that in the current implementation, they are not re-used,
but I need to know whether I can depend on this in future versions of
Vim.

According to documentation on :ls...

"Each buffer has a unique number. That number will not change,
thus you can always go to a specific buffer with ":buffer N""

The rationale makes me wonder whether the guarantee is valid only for
the lifetime of the buffer. Does the guarantee hold even if the buffer
is eventually bwiped? (Again, I realize it does now, but I'm asking
about design intent, so perhaps this is something only Bram can answer
definitively...)

Thanks,
Brett S.

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment