Copy And Append To Buffer [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Copy And Append To Buffer
Purpose
Adds selected text to the current Cut/Paste buffer contents.
Default Syntax
[n] ESC c
where n is a count that represents the number of lines to add beginning
at the cursor line. The default value of n is 1.
Description
This command adds one or more lines of text to the current contents of
the Cut/Paste buffer. You can then insert the stored text into a
specified file location using the Paste Before or Paste After command.
Copy and Append Process
When you execute this command, HP EDIT copies the specified lines and
adds them to the current Cut/Paste buffer contents. You can then insert
the buffer contents into text using one of the paste commands (Paste
After, Paste Before, Paste Over). The buffer contents remain intact
until you do one of the following:
* Terminate the session.
* Write over the contents by executing the Copy To Buffer or Cut To
Buffer command.
Copy and Append Methods
There are two methods of adding text to the Cut/Paste buffer. You can
either:
[REV BEG]
* Specify a count representing the number of lines to add , then
issue the command.
* Select a block representing the number of lines you want to add,
then issue the command.[REV END]
The second method is recommended if the number of lines you want to add
is not readily apparent.
Procedures
To add lines to the buffer using a manual count:
1. Move the cursor to a column anywhere on the first line of the
group of lines to be copied and added to the buffer.
2. Type a count that represents the number of lines you want to add
to the Cut/Paste buffer. If you specify a count greater than the
number of lines remaining in the file, HP EDIT only copies the
remaining lines.
3. Press ESC and the c key, or press the Cut/Paste function key,
followed by the Copy and Append function key. HP EDIT displays X
lines in Cut/Paste buffer on the message line, where X equals the
number of lines specified as the count plus the previous number of
lines in the buffer.
[REV BEG]
To add lines to the buffer using blocks:
1. Select the block of text you want to copy and append.
2. Press ESC and the c key, or press the Cut/Paste function key
followed by the Copy and Append function key. HP EDIT displays X
lines in Cut/Paste buffer on the message line. X equals the
number of lines specified in the block plus the previous number of
lines in the buffer.
[REV END]
Example
To add the following lines to the current Cut/Paste buffer contents:
These two lines will be added to the buffer.
The lines will be unaltered after the command is issued.
1. Move the cursor to a column anywhere on the first line.
2. Type the number 2 as the count.
3. Press ESC and the c key. HP EDIT adds the two lines to the
current Cut/Paste buffer and displays the following response on
the message line:
X lines in cut/paste buffer
where X equals 2 plus the previous number of lines in the buffer.
Related Commands
Copy To Buffer
Cut To Buffer
Cut And Append To Buffer
Paste Before
Paste After
Paste Over
MPE/iX 5.0 Documentation