Skip to main content
Module

x/denops_std/function/mod.ts>argv

📚 Standard module for denops.vim
Go to Latest
function argv
import { argv } from "https://deno.land/x/denops_std@v4.1.3/function/mod.ts";

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 .. '' : 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.

Parameters

denops: Denops
optional
nr: unknown
optional
winid: unknown

Returns

Promise<unknown>