Skip to main content
Module

x/denops_std/function/mod.ts>gettabvar

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

Get the value of a tab-local variable {varname} in tab page {tabnr}. |t:var| Tabs are numbered starting with one. When {varname} is empty a dictionary with all tab-local variables is returned. Note that the name without "t:" must be used. When the tab or variable doesn't exist {def} or an empty string is returned, there is no error message. Can also be used as a |method|: GetTabnr()->gettabvar(varname)

Parameters

denops: Denops
tabnr: unknown
varname: unknown
optional
def: unknown

Returns

Promise<unknown>