I’m fairly new to Vim, and have been using vim adventures to learn all of the commands. Tonight, I learned about the “yank” command (y[motion] and Y), but when I try to use it in MacVim, it doesn’t do anything. I thought maybe it had something to do with my .vimrc, so I tried with a fresh .vimrc (no packages, no configs). It still didn’t work.
I’ve googled for an hour and can’t find anything. Am I missing something obvious?
Wow, I figured it out. I was indeed missing something obvious. For some reason I was expecting Yank to remove the specified text AND copy it. So when it wasn’t removing the line, I thought something was wrong. In fact, Yank just copies.