import { vars } from "https://deno.land/x/ddu_vim@v4.0.0/deps.ts";
const { vim } = vars;
Vim variables (vim
or v
)
import type { Denops } from "https://deno.land/x/denops_std@v4.0.0/mod.ts";
import { vim } from "https://deno.land/x/denops_std@v4.0.0/variable/mod.ts";
export async function main(denops: Denops): Promise<void> {
// Set vim variable
await vim.set(denops, "version", "world");
// Get vim variable
console.log(await vim.get(denops, "version"));
}