0
0
mirror of https://github.com/vim/vim.git synced 2025-09-03 21:23:48 -04:00

runtime(doc): clarify, that register 1-9 will always be shifted

related: #15077

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt 2024-06-23 20:24:52 +02:00
parent 62f7b55c1a
commit ecd642af43
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -1,4 +1,4 @@
*change.txt* For Vim version 9.1. Last change: 2024 May 18 *change.txt* For Vim version 9.1. Last change: 2024 Jun 23
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -1272,13 +1272,13 @@ Vim fills these registers with text from yank and delete commands.
Numbered register 0 contains the text from the most recent yank command, Numbered register 0 contains the text from the most recent yank command,
unless the command specified another register with ["x]. unless the command specified another register with ["x].
Numbered register 1 contains the text deleted by the most recent delete or Numbered register 1 contains the text deleted by the most recent delete or
change command, unless the command specified another register or the text is change command (even when the command specified another register), unless the
less than one line (the small delete register is used then). An exception is text is less than one line (the small delete register is used then). An
made for the delete operator with these movement commands: |%|, |(|, |)|, |`|, exception is made for the delete operator with these movement commands: |%|,
|/|, |?|, |n|, |N|, |{| and |}|. Register "1 is always used then (this is Vi |(|, |)|, |`|, |/|, |?|, |n|, |N|, |{| and |}|.
compatible). The "- register is used as well if the delete is within a line. Register "1 is always used then (this is Vi compatible). The "- register is
Note that these characters may be mapped. E.g. |%| is mapped by the matchit used as well if the delete is within a line. Note that these characters may be
plugin. mapped. E.g. |%| is mapped by the matchit plugin.
With each successive deletion or change, Vim shifts the previous contents With each successive deletion or change, Vim shifts the previous contents
of register 1 into register 2, 2 into 3, and so forth, losing the previous of register 1 into register 2, 2 into 3, and so forth, losing the previous
contents of register 9. contents of register 9.