GNU Info

Info Node: (vip)Yank Commands

(vip)Yank Commands


Next: Put Back Commands Prev: Delete Commands Up: Modifying Commands
Enter node , (file) or (file)node

Yank Commands
-------------

   Yank commands "yank" a text of buffer into a (usually anonymous)
register.  Here the word `yank' is used in Vi's sense.  Thus yank
commands do not alter the content of the buffer, and useful only in
combination with commands that put back the yanked text into the buffer.

`y MOTION-COMMAND'
     Yank the region determined by the motion command MOTION-COMMAND.

For example, `y $' will yank the text between point and the end of line
into an anonymous register, while `"c y $' will yank the same text into
register `c'.

   Use the following command to yank consecutive lines of text.

`y y'
`Y'
     Yank a line.  Given N, yank N lines (`vip-yank-line').

`y r'
     Yank current region.

`y R'
     Expand current region and yank it.


automatically generated by info2www version 1.2.2.9