vim-patch:partial:f10911e5db16

Update runtime files
f10911e5db
This commit is contained in:
zeertzjq 2022-02-09 14:21:04 +08:00
parent d9cb3fba92
commit 196160b183
2 changed files with 8 additions and 3 deletions

View File

@ -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: and whether the corners are on an existing character. (Implementation detail:
it actually works by first putting the register after the selection and then it actually works by first putting the register after the selection and then
deleting the selection.) deleting the selection.)
The previously selected text is put in the unnamed register. If you want to With 'p' the previously selected text is put in the unnamed register. This is
put the same text into a Visual selection several times you need to use 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 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 replace and use "0p . You can repeat this as many times as you like, and the
unnamed register will be changed each time. unnamed register will be changed each time.

View File

@ -923,7 +923,9 @@ tag command note action in Visual mode ~
before the highlighted area before the highlighted area
|v_J| J 2 join the highlighted lines |v_J| J 2 join the highlighted lines
|v_K| K run 'keywordprg' on the highlighted area |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 Q does not start Ex mode
|v_R| R 2 delete the highlighted lines and start |v_R| R 2 delete the highlighted lines and start
insert insert