Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>getwinvar

๐Ÿ“š Standard module for denops.vim
Go to Latest
function getwinvar
import { getwinvar } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

Like gettabwinvar() for the current tabpage. Examples:

:let list_is_on = getwinvar(2, '&list')
:echo "myvar = " .. getwinvar(1, 'myvar')

Can also be used as a method:

GetWinnr()->getwinvar(varname)

Parameters

denops: Denops
winnr: unknown
varname: unknown
optional
def: unknown

Returns

Promise<unknown>