import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { argv } = fn;
The result is the **{nr}**th file in the argument list. See
arglist
. "argv(0)" is the first one. Example:
:let i = 0
:while i < argc()
: let f = escape(fnameescape(argv(i)), '.')
: exe 'amenu Arg.' .. f .. ' :e ' .. f .. '<CR>'
: let i = i + 1
:endwhile
Without the {nr} argument, or when {nr} is -1, a List
with
the whole arglist
is returned.
The {winid} argument specifies the window ID, see argc()
.
For the Vim command line arguments see v:argv
.
Returns an empty string if **{nr}**th argument is not present in the argument list. Returns an empty List if the {winid} argument is invalid.