Reputation: 4606
For example when I write a macro command to editor from register r
with
"rp
What does that quotation mean?
I can't seem to find the answer anywhere.
Upvotes: 16
Views: 7127
Reputation: 48310
The double quote indicates that the next character is the name of a register. So the command "rp
means: "from the named register r
, paste text."
Sort of related, a single quote indicates that the next character is an address. So, for example if you navigate to some line in the file and press ma, you've "marked" the address as a
. You can then refer to that line with 'a
. The command 'a
will jump to the line marked as a
.
Upvotes: 21
Reputation: 15121
@AdamLiss already explained the meaning of "rp
, but I think you can learn more from Vim online manual.
For the explanation of p
, you can run :h p
in Vim; for the introduction of ["x]
, you can run Vim command :h [quotex]
. And for general help of Vim, just run :h
.
Upvotes: 4