Hello all,
I am currently writing a buffer explorer type of plugin and am finding
that in at least one specific use case bufnr('#') is "wrong". I was
hoping someone may be able to shed some light as to if it's just my
interpretation that is wrong.
vim -u NONE --noplugin
:echo bufnr('%') => 1
:echo bufnr('#') => -1
:e foo
:echo bufnr('%') => 1
:echo bufnr('#') => 1
If the buffer number of the current buffer does not change, why does the
number of the alternate buffer change?
Thanks,
-- Randy
--
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