The D (delete) line command deletes
lines from your display.
Syntax
>>-D--+---+----------------------------------------------------><
'-n-'
>>-DD----------------------------------------------------------><
- n
- The number of lines to be deleted. If you do not type a number,
or if the number you type is 1, only the line on which you type D is
deleted.
Description
To delete one or more lines:
- Type D in the line command field of the line
to be deleted. If you also want to delete one or more lines that immediately
follow this line, type a number greater than 1 after the D command.
- Press Enter.
The line or lines are deleted.
To delete a block of lines:
- Type DD in the line command field of both the
first and last lines to be deleted. You can scroll (or use FIND or
LOCATE) between typing the first DD and the second DD,
if necessary.
- Press Enter.
The lines that contain the two DD commands and
all of the lines between them are deleted.
Examples
To delete two lines, type D2 in
the line command field of the first line you want to delete. See Figure 1.
Figure 1. Before the D (Delete) line command
When you press Enter, the editor deletes the two lines
specified. See Figure 2.
Figure 2. After the D (Delete) line command