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