HP 3000 Manuals

Delete Line [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Delete Line 

Purpose 

Deletes a line from the file.

Default Syntax 

[n] D

where n is a count that represents the number of lines to delete
beginning at the cursor position.  The default value of n is 1.

Description 

This command deletes one or more lines from the current file session.  HP
EDIT deletes the line where the cursor is currently positioned and moves
the following line up to the cursor position.

When in Text Entry mode, you can use the Delete Line terminal key to
perform a similar function as this command.

Procedure 

To delete a single line: 

   1.  Move the cursor to a column anywhere on the line to be deleted.

   2.  Press the D key.  HP EDIT deletes the line and moves the next line
       to the position of the former line.

To delete several lines: 

   1.  Move the cursor to a column anywhere on the first line of the
       group of lines to be deleted.

   2.  Press the D key repeatedly until you have deleted all of the
       unwanted lines.

     or 
[REV BEG]

   1.  Either type a count or select a block.  This value represents the
       number of lines to delete.

   2.  Press the D key.[REV END]

Example 

To delete the second and third lines: 

            This line will remain.
            This line will be deleted.
            This line will also be deleted.
            This line will also remain.

   1.  Move the cursor anywhere on the second line as shown.

   2.  Type the number 2 as the count and press Return.

   3.  Press the D key.  HP EDIT deletes the lines and retains the first
       and fourth lines as shown:

            This line will remain.
            This line will also remain.

Related Commands 

       Delete Character
       Delete Pattern
       Delete Word
       Replace Character
       Replace Line
       Replace Word



MPE/iX 5.0 Documentation