aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-04-19 20:55:49 +0200
committerGitHub <noreply@github.com>2022-04-19 20:55:49 +0200
commit245858460f4c7f059333e29a251abee7c675de64 (patch)
tree748d69ad75ac693055ba5598bdb4f19e8a6ea823 /runtime
parentdbc4af71861bf2d3bac6974a0bdb99b18a13666a (diff)
parent1e3d9c7dbc3ea186227ae27a93e683f750a32ce1 (diff)
downloadrneovim-245858460f4c7f059333e29a251abee7c675de64.tar.gz
rneovim-245858460f4c7f059333e29a251abee7c675de64.tar.bz2
rneovim-245858460f4c7f059333e29a251abee7c675de64.zip
Merge pull request #18157 from famiu/feat/undo!
feat: add `undo!`
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.