Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.argv

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.argv
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/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.

Parameters

denops: Denops
optional
nr: unknown
optional
winid: unknown

Returns

Promise<unknown[]>