aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-09-29 15:56:11 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-09-29 17:05:02 +0800
commit9db304b451e68ab49388827263eec01f9dcfa0b4 (patch)
tree5dd7709e4bdb391afd90f9b6cfed1d223daa2c5c
parent610e9666af0ef16f3677b23a5c341c8817c89965 (diff)
downloadrneovim-9db304b451e68ab49388827263eec01f9dcfa0b4.tar.gz
rneovim-9db304b451e68ab49388827263eec01f9dcfa0b4.tar.bz2
rneovim-9db304b451e68ab49388827263eec01f9dcfa0b4.zip
vim-patch:998f018: runtime(doc): include short form for :earlier/:later
fixes: vim/vim#15757 https://github.com/vim/vim/commit/998f018df37088455bd68ad79da3d16bc4ad9bbe Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/doc/undo.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/runtime/doc/undo.txt b/runtime/doc/undo.txt
index 3fcc196250..b3a49dbb7e 100644
--- a/runtime/doc/undo.txt
+++ b/runtime/doc/undo.txt
@@ -165,13 +165,13 @@ This is explained in the user manual: |usr_32.txt|.
g- Go to older text state. With a count repeat that many
times.
*:ea* *:earlier*
-:earlier {count} Go to older text state {count} times.
-:earlier {N}s Go to older text state about {N} seconds before.
-:earlier {N}m Go to older text state about {N} minutes before.
-:earlier {N}h Go to older text state about {N} hours before.
-:earlier {N}d Go to older text state about {N} days before.
+:ea[rlier] {count} Go to older text state {count} times.
+:ea[rlier] {N}s Go to older text state about {N} seconds before.
+:ea[rlier] {N}m Go to older text state about {N} minutes before.
+:ea[rlier] {N}h Go to older text state about {N} hours before.
+:ea[rlier] {N}d Go to older text state about {N} days before.
-:earlier {N}f Go to older text state {N} file writes before.
+:ea[rlier] {N}f Go to older text state {N} file writes before.
When changes were made since the last write
":earlier 1f" will revert the text to the state when
it was written. Otherwise it will go to the write
@@ -184,13 +184,13 @@ g- Go to older text state. With a count repeat that many
g+ Go to newer text state. With a count repeat that many
times.
*:lat* *:later*
-:later {count} Go to newer text state {count} times.
-:later {N}s Go to newer text state about {N} seconds later.
-:later {N}m Go to newer text state about {N} minutes later.
-:later {N}h Go to newer text state about {N} hours later.
-:later {N}d Go to newer text state about {N} days later.
+:lat[er] {count} Go to newer text state {count} times.
+:lat[er] {N}s Go to newer text state about {N} seconds later.
+:lat[er] {N}m Go to newer text state about {N} minutes later.
+:lat[er] {N}h Go to newer text state about {N} hours later.
+:lat[er] {N}d Go to newer text state about {N} days later.
-:later {N}f Go to newer text state {N} file writes later.
+:lat[er] {N}f Go to newer text state {N} file writes later.
When at the state of the last file write, ":later 1f"
will go to the newest text state.