diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2022-05-06 11:45:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-06 11:45:09 +0100 |
commit | 509142ab7a9db32114b6d0949722b9133c9c22f2 (patch) | |
tree | 45b4cfc0fbae41deda1227b38075a40737660ac4 /runtime/doc/change.txt | |
parent | 434725cc4cbbadafc82954178f55864741455cdb (diff) |
patch 8.2.4881: "P" in Visual mode still changes some registersv8.2.4881
Problem: "P" in Visual mode still changes some registers.
Solution: Make "P" in Visual mode not change any register. (Shougo
Matsushita, closes #10349)
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r-- | runtime/doc/change.txt | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index fdae0da959..6278b7dca8 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -1177,14 +1177,15 @@ 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.) -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. +With |p| the previously selected text is put in the unnamed register (and +possibly the selection and/or clipboard). 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 (and neither the selection or +clipboard), 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. When you use a blockwise Visual mode command and yank only a single line into a register, a paste on a visual selected area will paste that single line on |