Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>op.undolevels

Dark deno-powered completion framework for neovim/Vim
Go to Latest
variable op.undolevels
import { op } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { undolevels } = op;

Maximum number of changes that can be undone. Since undo information is kept in memory, higher numbers will cause more memory to be used. Nevertheless, a single change can already use a large amount of memory. Set to 0 for Vi compatibility: One level of undo and "u" undoes itself:

set ul=0

But you can also get Vi compatibility by including the 'u' flag in 'cpoptions', and still be able to use CTRL-R to repeat undo. Also see undo-two-ways. Set to -1 for no undo at all. You might want to do this only for the current buffer:

setlocal ul=-1

This helps when you run out of memory for a single change.

The local value is set to -123456 when the global value is to be used.

Also see clear-undo.

(default 100, 1000 for Unix, VMS and Win32)

type

GlobalOrLocalOption<number>