import { vars } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { windows } = vars;
Window local variables (windows
or w
)
import { Denops } from "../mod.ts";
import { windows } from "../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");
}