HP 3000 Manuals

Cut And Append To Buffer [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Cut And Append To Buffer 

Purpose 

Deletes selected text and adds it 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 removes one or more lines of text from a file and adds them
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.

Removal and Append Process 

When you execute this command, HP EDIT removes 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 commands

Removal and Append Methods 

There are two methods of removing multiple lines of text and adding them
to the Cut/Paste buffer.  You can either:

   *   Type a count representing the number of lines to add and then
       execute the command.  If the count is greater than the number of
       lines remaining in the file, HP EDIT only cuts the remaining
       lines.

            or 
       [REV BEG]

   *   Select a block, then execute the command.[REV END]

The second method is recommended if the number of lines you want to add
is not readily apparent.

Procedures 
[REV BEG]

To cut and add lines to the buffer using a count:[REV END]

   1.  Move the cursor to a column anywhere on the first line of the
       group of lines to be removed and added to the buffer.

   2.  Type a count representing the number of lines you want to add to
       the Cut/Paste buffer.

   3.  Press ESC and the C key.  HP EDIT removes the lines from the text
       and 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 cut and add lines to the buffer using a block: 

   1.  Select a block of text.

   2.  Press ESC and the C key.  HP EDIT removes the lines from the text
       and 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 cut and add the following lines to the current Cut/Paste buffer 
contents: 

           These two lines will be cut and added to the buffer.
           The lines will be deleted 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 removes the two lines from the
       text, adds them to the current Cut/Paste buffer, and displays the
       following message:

            X lines in cut/paste buffer

       where X equals 2 plus the previous number of lines in the buffer.

Related Commands 

       Cut To Buffer
       Copy To Buffer
       Copy And Append To Buffer
       Paste Before
       Paste After
       Paste Over



MPE/iX 5.0 Documentation