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

x/denops_std/variable/mod.ts>vim

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

Vim variables (vim or v)

import type { Denops } from "https://deno.land/x/denops_std@v6.4.0/mod.ts";
import { vim } from "https://deno.land/x/denops_std@v6.4.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"));
}