yank:
to pull on something with a quick vigorous movement
How does "yank" correspond to the copy functionality in Vim?
to pull on something with a quick vigorous movement.
Many word processors allow you to “copy and paste” and “cut and paste” lines of text. The vi editor also includes these features. The vi command-mode equivalent of “copy and paste” is yank and put. The equivalent of “cut and paste” is delete and put.
Vim has its own terminology for copying, cutting, and pasting. Copy is called yank ( y ), cut is called delete ( d ), and paste is called put ( p ).
I know that, in order to copy the text to the system clipboard I can select the text in visual mode and then press "+y . I also know that I can use :%y to yank the entire file to the vim clipboard.
The text is pulled (yanked) into the register for later use
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With