Skip to main content
Module

x/denops_std/option/mod.ts>write

📚 Standard module for denops.vim
Go to Latest
variable write
import { write } from "https://deno.land/x/denops_std@v4.1.7/option/mod.ts";

Allows writing files. When not set, writing a file is not allowed. Can be used for a view-only mode, where modifications to the text are still allowed. Can be reset with the -m or -M command line argument. Filtering text is still possible, even though this requires writing a temporary file.

(default on)

type

{ get(denops: Denops): Promise<boolean>; set(denops: Denops, value: boolean): Promise<void>; reset(denops: Denops): Promise<void>; getGlobal(denops: Denops): Promise<boolean>; setGlobal(denops: Denops, value: boolean): Promise<void>; resetGlobal(denops: Denops): Promise<void>; }