BVI

BVI: Yank and Put


ySPACE yanks byte under cursor
nySPACE yanks n bytes, beginning at cursor position
yfC yanks from current position to next character C
y/xyz yanks from current position to first matching pattern xyz
y$yanks from current position to EOF
y'a yanks from current position to mark a
ynG yanks from current position to byte with (decimal) address n
o overwrites the bytes after the cursor with the contents of the yank or delete buffer
pputs the contents of the yank or delete buffer after the cursor
Pappends the contents of the buffer to end of file

Using ex (colon) Commands

:y(ank)
yank can be used with one or two addresses specified. One address with no count specified copies the specified byte into the buffer. Two addresses with no count specified copies multiple bytes starting and ending with the specified bytes. Two addresses and a count value copies count bytes starting at the second specified address (the first address is ignored). If no address is specified, the current address ist used by yank.
Examples:
:start_addr,end_addr y RETURN
:start_addr y byte_countRETURN
:y byte_countRETURN

:pu(t)

Restores previously deleted or yanked bytes after the address specified in the put command.

:o(verwrite)

Overwrites bytes after the specified address with previously deleted or yanked bytes.

NOTE: There are currently no namend buffers available.

Back to the top
Page updated: August 1st, 2025 by Gerhard Bürgmann, Purkersdorf/Austria