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

x/ddc_vim/deps.ts>fn.settabvar

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.settabvar
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { settabvar } = fn;

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<void>