Skip to main content
Module

x/ddc_vim/deps.ts>op.undolevels

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
variable op.undolevels
import { op } from "https://deno.land/x/ddc_vim@v2.3.0/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.