aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@protonmail.com>2022-04-18 09:02:32 +0600
committerFamiu Haque <famiuhaque@protonmail.com>2022-04-20 00:10:02 +0600
commit1e3d9c7dbc3ea186227ae27a93e683f750a32ce1 (patch)
tree90f69449f47ae0a3078dcb0c8742879793005a8c /runtime
parent0124a7bfa9e27796e561cb0b3a045b9327bf7077 (diff)
downloadrneovim-1e3d9c7dbc3ea186227ae27a93e683f750a32ce1.tar.gz
rneovim-1e3d9c7dbc3ea186227ae27a93e683f750a32ce1.tar.bz2
rneovim-1e3d9c7dbc3ea186227ae27a93e683f750a32ce1.zip
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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/undo.txt8
1 files changed, 8 insertions, 0 deletions
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.