Skip to main content
Module

x/denops_std/function/mod.ts>argc

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

The result is the number of files in the argument list. See arglist. If {winid} is not supplied, the argument list of the current window is used. If {winid} is -1, the global argument list is used. Otherwise {winid} specifies the window of which the argument list is used: either the window number or the window ID. Returns -1 if the {winid} argument is invalid.

Parameters

denops: Denops
optional
winid: unknown

Returns

Promise<number>