Skip to content

"y" to yank not working #937

Closed Answered by citizenmatt
intercepted16 asked this question in Q&A
Discussion options

You must be logged in to vote

y is used to yank to a specific register, identified with a letter or other symbol, and addressed with the " symbol, such as "ayw to yank a word to the "a" register, and "ap to put the contents of the "a" register. If you don't specify a register, Vim (and also IdeaVim) will use the "unnamed" register, which you can also access with the quote symbol, e.g. ""yw or ""p.

If you want to yank to the system clipboard, you need to use the clipboard register, which is "*", so "*yw and "*p. You can also configure this to be used instead of the unnamed register, so yw and p would use the system clipboard. You can do this by typing :set clipboard=unnamed and hitting return. If you want this to alway…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by intercepted16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants