David Fan
David Fan

Reputation: 21

What does "*y do in vim?

I was reading through Gary Bernhardt's vimrc file and I saw that he maps leadery to "*y. After using help on various permutations of those characters I'm still unsure of what that's actually doing. Could someone explain it to me?

Upvotes: 1

Views: 1327

Answers (1)

yausername
yausername

Reputation: 760

Assuming Vim was compiled with clipboard access, it is possible to access the "+ or "* registers, which can modify the system clipboard. In this case, one can copy with e.g. "+y in visual mode, or "+y{motion} in normal mode, and paste with e.g. "+p.

Taken from here

More here

Upvotes: 1

Related Questions