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

x/denops_std/variable/variable.ts>windows

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

Window local variables (windows or w)

import type { Denops } from "https://deno.land/x/denops_std@v6.4.0/mod.ts";
import { windows } from "https://deno.land/x/denops_std@v6.4.0/variable/mod.ts";

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

  // Get window variable
  console.log(await windows.get(denops, "hello"));

  // Remove window variable
  await windows.remove(denops, "hello");
}