Skip to main content
Module

x/ddu_vim/deps.ts>fn.gettabvar

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.gettabvar
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { gettabvar } = fn;

Get the value of a tab-local variable {varname} in tab page {tabnr}. |t:var| Tabs are numbered starting with one. The {varname} argument is a string. 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>