runtime(doc): clarify, that register 1-9 will always be shifted Commit: https://github.com/vim/vim/commit/ecd642af43dc496e92020422fded717e095d4bc1 Author: Christian Brabandt <c...@256bit.org> Date: Sun Jun 23 20:24:52 2024 +0200
runtime(doc): clarify, that register 1-9 will always be shifted related: https://github.com/vim/vim/issues/15077 Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 50ff4ec99..2b4bd189a 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -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 @@ -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, unless the command specified another register with ["x]. 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 -less than one line (the small delete register is used then). An exception is -made for the delete operator with these movement commands: |%|, |(|, |)|, |`|, -|/|, |?|, |n|, |N|, |{| and |}|. Register "1 is always used then (this is Vi -compatible). The "- register is used as well if the delete is within a line. -Note that these characters may be mapped. E.g. |%| is mapped by the matchit -plugin. +change command (even when the command specified another register), unless the +text is less than one line (the small delete register is used then). An +exception is made for the delete operator with these movement commands: |%|, +|(|, |)|, |`|, |/|, |?|, |n|, |N|, |{| and |}|. +Register "1 is always used then (this is Vi compatible). The "- register is +used as well if the delete is within a line. Note that these characters may be +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. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sLRyX-00DVP4-Mi%40256bit.org.