Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why yank is the meaning of copy in vim? [closed]

Tags:

yank:

to pull on something with a quick vigorous movement

How does "yank" correspond to the copy functionality in Vim?

like image 337
showkey Avatar asked May 26 '13 08:05

showkey


People also ask

What does yank mean vim?

to pull on something with a quick vigorous movement.

What is yank copy?

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.

What does yank command do in editor?

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 ).

How do I yank a whole file in Vim?

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.


1 Answers

The text is pulled (yanked) into the register for later use

like image 175
Dylan Avatar answered Sep 19 '22 15:09

Dylan