Marcin Szamotulski wrote:
> I wrote a small patch which adds argisglobal() function which returns
> 1 if the current buffer has global arglist otherwise, if there is
> a local arg list it return 0. I haven't found any other way to test if
> the arglist is gobal/local.
>
> I've been using this patch for some time already (I have a plugin
> http://www.vim.org/scripts/script.php?script_id=4681 which is using it)
> and it works fine.
I'm sure someone will ask for another thing: What local argument list is
being used. They can be shared between windows.
A more generic solution would be to request the ID of the local argument
list. When zero, then the window is using the global argument list.
And then we of course also want to optionally pass in the window number.
So it would be:
arglistid([winnr])
--
hundred-and-one symptoms of being an internet addict:
255. You work for a newspaper and your editor asks you to write an
article about Internet addiction...in the "first person."
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.