]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): correct `vi` registers 1-9 documentation error
authorFrederick Key Abell III <fkabell@localhost.localdomain>
Mon, 7 Oct 2024 19:07:12 +0000 (21:07 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 7 Oct 2024 19:07:12 +0000 (21:07 +0200)
When using heirloom `vi` originally written by Bill Joy (`:version`
gives me "Version 4.0 (gritter) 12/25/06"), its possible to store text into
registers 1-9 and subsequently use the `:edit` or `:next` command to
change files and paste the contents of those numbered registers,
contrary to what Vim documentation states.

POSIX description also does not mention such a restriction:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/ex.html#tag_20_40_13_10

closes: #15814

Signed-off-by: Frederick Key Abell III <fkabell@localhost.localdomain>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/change.txt

index 2304712c3ef9d3307f82d247e875eb5096e8508a..785f4accae0453398ee6715758bf98388134b06f 100644 (file)
@@ -1,4 +1,4 @@
-*change.txt*    For Vim version 9.1.  Last change: 2024 Jul 28
+*change.txt*    For Vim version 9.1.  Last change: 2024 Oct 07
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1283,8 +1283,7 @@ mapped.  E.g. |%| is mapped by the matchit plugin.
    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
 contents of register 9.
-{Vi: numbered register contents are lost when changing files; register 0 does
-not exist}
+{Vi: register 0 does not exist}
 
 3. Small delete register "-                            *quote_-* *quote-*
 This register contains text from commands that delete less than one line,