当我想在删除当前行的内容后复制一行并将其粘贴到当前行时,我最终粘贴了被删除的同一行,因为剪贴板条目在按下后被更改d
问问题
509 次
3 回答
6
"1
您可以使用以下寄存器访问未命名寄存器的先前内容"9
:
"3p
Register"0
总是包含最后一个显式 yank:
"0p
您可以将一个命名寄存器"a
拉到"z
. 如果你想保存一个片段供以后使用,使用命名寄存器是一个非常好的主意:
"ey
"ep
见:help registers
。
于 2016-05-25T11:31:01.540 回答
2
要将当前行替换为剪贴板中的任何内容,您可以选择该行并粘贴。即做一个
Shiftvp
于 2016-05-25T11:28:48.010 回答
1
除了已经提供的有关寄存器的信息外,您还可以键入
:reg
to get a list of what is currently stored in all of the registers.
You can then use the 2-character code that is displayed on the left (beginning with a "
eg. "2
) followed by p
while in normal mode to paste the contents of that register.
于 2016-05-26T19:42:16.593 回答