Hi all,

A Vim window can use either the global argument list or a local argument
list.  The argv() and argc() functions currently support only the
argument list for the current window. You cannot use these functions to
get the argument list for any window in any tab page.

I am proposing the following additions to the argv() and argc()
functions to support this:

argc()
    Return the number of files in the argument list of the current
    window. <already supported>
argc({winnr})
    Return the number of files in the argument list of the specified
    window in the current tab page.
argc({winnr}, {tabnr})
    Return the number of files in the argument list of the specified
    window in the specified tab page.

argv()
    Return the argument list for the current window. <already supported>
argv({nr})
    Return the {nr}th file in the argument list for the current window.
    <already supported>
argv({nr}, {winnr})
    Return the {nr}th file in the argument list for the specified window
    in the current tab page.
argv({nr}, {winnr}, {tabnr})
    Return the {nr}th file in the argument list for the specified window
    in the specified tab page.
argv(-1, {winnr})
    Return the argument list for the specified window in the current tab page.
argv(-1, {winnr}, {tabnr})
    Return the argument list for the specified window in the specified
    tab page.

Any comments on the proposed enhancements?

Thanks,
Yegappan

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui