From 1e3d9c7dbc3ea186227ae27a93e683f750a32ce1 Mon Sep 17 00:00:00 2001 From: Famiu Haque Date: Mon, 18 Apr 2022 09:02:32 +0600 Subject: feat: add `undo!` Allows using `undo!` to undo changes and remove them from the undo-tree. Can only be used for moving backwards in the same undo branch. --- runtime/doc/undo.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/undo.txt b/runtime/doc/undo.txt index a853aea995..39b26476af 100644 --- a/runtime/doc/undo.txt +++ b/runtime/doc/undo.txt @@ -22,6 +22,14 @@ u Undo [count] changes. :u[ndo] {N} Jump to after change number {N}. See |undo-branches| for the meaning of {N}. +:u[ndo]! Undo one change and remove it from undo history. + *E5767* +:u[ndo]! {N} Like ":u[ndo] {N}", but forget all changes in the + current undo branch up until {N}. You may only use + ":undo! {N}" to move backwards in the same undo + branch, not to redo or switch to a different undo + branch. + *CTRL-R* CTRL-R Redo [count] changes which were undone. -- cgit