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

x/denops_std/variable/variable.ts>tabpages

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

Tabpage local variables (tabpages or t)

import { Denops } from "../mod.ts";
import { tabpages } from "../variable/mod.ts";

export async function main(denops: Denops): Promise<void> {
  // Set tabpage variable
  await tabpages.set(denops, "hello", "world");

  // Get tabpage variable
  console.log(await tabpages.get(denops, "hello"));

  // Remove tabpage variable
  await tabpages.remove(denops, "hello");
}