Skip to main content
Module

x/denops_std/function/mod.ts>settabvar

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

Set tab-local variable {varname} to {val} in tab page {tabnr}. |t:var| The {varname} argument is a string. Note that autocommands are blocked, side effects may not be triggered, e.g. when setting 'filetype'. Note that the variable name without "t:" must be used. Tabs are numbered starting with one. This function is not available in the |sandbox|. Can also be used as a |method|, the base is passed as the third argument: GetValue()->settabvar(tab, name)

Parameters

denops: Denops
tabnr: unknown
varname: unknown
val: unknown

Returns

Promise<unknown>