summaryrefslogtreecommitdiff
path: root/runtime/doc/undo.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-05 18:13:34 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-05 18:13:34 +0200
commit25c9c680ec4dfbb51f4ef21c3460a48d3c67ffc8 (patch)
tree0b70444195e194bf5c99df419361bc2052373c02 /runtime/doc/undo.txt
parent9a061cb78ccbf78ec9ae454d37a49edccb4e94fc (diff)
downloadvim-git-25c9c680ec4dfbb51f4ef21c3460a48d3c67ffc8.tar.gz
patch 8.1.1280: remarks about functionality not in Vi clutters the helpv8.1.1280
Problem: Remarks about functionality not in Vi clutters the help. Solution: Move all info about what is new in Vim or already existed in Vi to vi_diff.txt. Remove {not in Vi} remarks. (closes #4268) Add "noet" to the help files modeline. Also include many other help file improvements.
Diffstat (limited to 'runtime/doc/undo.txt')
-rw-r--r--runtime/doc/undo.txt15
1 files changed, 6 insertions, 9 deletions
diff --git a/runtime/doc/undo.txt b/runtime/doc/undo.txt
index b6c9809c2..316e32f13 100644
--- a/runtime/doc/undo.txt
+++ b/runtime/doc/undo.txt
@@ -1,4 +1,4 @@
-*undo.txt* For Vim version 8.1. Last change: 2019 Jan 04
+*undo.txt* For Vim version 8.1. Last change: 2019 May 05
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -25,7 +25,7 @@ u Undo [count] changes. {Vi: only one level}
:u[ndo] Undo one change. {Vi: only one level}
*E830*
:u[ndo] {N} Jump to after change number {N}. See |undo-branches|
- for the meaning of {N}. {not in Vi}
+ for the meaning of {N}.
*CTRL-R*
CTRL-R Redo [count] changes which were undone. {Vi: redraw
@@ -95,7 +95,6 @@ change but joins in with the previous change use this command:
Warning: Use with care, it may prevent the user from
properly undoing changes. Don't use this after undo
or redo.
- {not in Vi}
This is most useful when you need to prompt the user halfway through a change.
For example in a function that calls |getchar()|. Do make sure that there was
@@ -151,7 +150,7 @@ This is explained in the user manual: |usr_32.txt|.
*g-*
g- Go to older text state. With a count repeat that many
- times. {not in Vi}
+ times.
*:ea* *:earlier*
:earlier {count} Go to older text state {count} times.
:earlier {N}s Go to older text state about {N} seconds before.
@@ -170,7 +169,7 @@ g- Go to older text state. With a count repeat that many
*g+*
g+ Go to newer text state. With a count repeat that many
- times. {not in Vi}
+ times.
*:lat* *:later*
:later {count} Go to newer text state {count} times.
:later {N}s Go to newer text state about {N} seconds later.
@@ -280,10 +279,8 @@ respectively:
the existing file and then creating a new file with the same
name. So it is not possible to overwrite an existing undofile
in a write-protected directory.
- {not in Vi}
:rundo {file} Read undo history from {file}.
- {not in Vi}
You can use these in autocommands to explicitly specify the name of the
history file. E.g.: >
@@ -374,10 +371,10 @@ information you can use these commands: >
:unlet old_undolevels
Marks for the buffer ('a to 'z) are also saved and restored, together with the
-text. {Vi does this a little bit different}
+text.
When all changes have been undone, the buffer is not considered to be changed.
-It is then possible to exit Vim with ":q" instead of ":q!" {not in Vi}. Note
+It is then possible to exit Vim with ":q" instead of ":q!". Note
that this is relative to the last write of the file. Typing "u" after ":w"
actually changes the buffer, compared to what was written, so the buffer is
considered changed then.