Skip to main content
Module

x/denops_std/function/mod.ts>changenr

📚 Standard module for denops.vim
Go to Latest
function changenr
import { changenr } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Return the number of the most recent change. This is the same number as what is displayed with :undolist and can be used with the :undo command. When a change was made it is the number of that change. After redo it is the number of the redone change. After undo it is one less than the number of the undone change. Returns 0 if the undo list is empty.

Returns

Promise<number>