Skip to main content
Module

x/denops_std/option/mod.ts>undofile

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

When on, Vim automatically saves undo history to an undo file when writing a buffer to a file, and restores undo history from the same file on buffer read. The directory where the undo file is stored is specified by 'undodir'. For more information about this feature see undo-persistence. The undo file is not read when 'undoreload' causes the buffer from before a reload to be saved for undo. When 'undofile' is turned off the undo file is NOT deleted. NOTE: This option is reset when 'compatible' is set.

(default off)

only when compiled with the +persistent_undo feature

type

{ get(denops: Denops): Promise<boolean>; set(denops: Denops, value: boolean): Promise<void>; reset(denops: Denops): Promise<void>; getLocal(denops: Denops): Promise<boolean>; setLocal(denops: Denops, value: boolean): Promise<void>; resetLocal(denops: Denops): Promise<void>; getBuffer(denops: Denops, bufnr: number): Promise<boolean>; setBuffer(
denops: Denops,
bufnr: number,
value: boolean,
): Promise<void>; getWindow(denops: Denops, winnr: number): Promise<boolean>; setWindow(
denops: Denops,
winnr: number,
value: boolean,
): Promise<void>; }