import { vars } from "https://deno.land/x/ddc_vim@v4.3.0/deps.ts";
const { buffers } = vars;
Buffer local variables (buffers
or b
)
import { Denops } from "../mod.ts";
import { buffers } from "../variable/mod.ts";
export async function main(denops: Denops): Promise<void> {
// Set buffer variable
await buffers.set(denops, "hello", "world");
// Get buffer variable
console.log(await buffers.get(denops, "hello"));
// Remove buffer variable
await buffers.remove(denops, "hello");
}