aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-02-09 14:21:04 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-02-09 14:21:04 +0800
commit196160b1838a462a819bcecb5921b96c2089cb20 (patch)
tree78e472f8eefe0534c466c0ccfbd9b495951a4587
parentd9cb3fba9228aed5109a8e6069c50e4f265be9f3 (diff)
downloadrneovim-196160b1838a462a819bcecb5921b96c2089cb20.tar.gz
rneovim-196160b1838a462a819bcecb5921b96c2089cb20.tar.bz2
rneovim-196160b1838a462a819bcecb5921b96c2089cb20.zip
vim-patch:partial:f10911e5db16
Update runtime files https://github.com/vim/vim/commit/f10911e5db16f1fe6ab519c5d091ad0c1df0d063
-rw-r--r--runtime/doc/change.txt7
-rw-r--r--runtime/doc/index.txt4
2 files changed, 8 insertions, 3 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index e26a84f80f..b4d3304880 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -1118,8 +1118,11 @@ register. With blockwise selection it also depends on the size of the block
and whether the corners are on an existing character. (Implementation detail:
it actually works by first putting the register after the selection and then
deleting the selection.)
-The previously selected text is put in the unnamed register. If you want to
-put the same text into a Visual selection several times you need to use
+With 'p' the previously selected text is put in the unnamed register. This is
+useful if you want to put that text somewhere else. But you cannot repeat the
+same change.
+With 'P' the unnamed register is not changed, you can repeat the same change.
+But the deleted text cannot be used. If you do need it you can use 'p' with
another register. E.g., yank the text to copy, Visually select the text to
replace and use "0p . You can repeat this as many times as you like, and the
unnamed register will be changed each time.
diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt
index f02f9f8032..e3bc3d5437 100644
--- a/runtime/doc/index.txt
+++ b/runtime/doc/index.txt
@@ -923,7 +923,9 @@ tag command note action in Visual mode ~
before the highlighted area
|v_J| J 2 join the highlighted lines
|v_K| K run 'keywordprg' on the highlighted area
-|v_O| O move horizontally to other corner of area.
+|v_O| O move horizontally to other corner of area
+|v_P| P replace highlighted area with register
+ contents; unnamed register is unchanged
Q does not start Ex mode
|v_R| R 2 delete the highlighted lines and start
insert