I'm fairly new to Vim. Tonight, I learned about the "yank" command, but when I try to use it in MacVim, it doesn't do anything. Neither Y
nor y{motion}
do anything. I tried with a default .vimrc
to rule out any weird config issues.
Google-fu is failing me. This feels like a noobie issue. Am I missing something obvious?
y
ank by itself merely copies the line into a clipboard - you will need to p
aste it onto the next line or onto the P
receding one to use the copied line. To cut the line as well, use d
elete.