next previous up contents index
Next: Copying Lines Previous: Inserting Lines Up: First Steps


Deleting Lines

There are several methods to delete one or more lines. The command

deletes n lines beginning with the current line. When you leave out the specification n, there will be only one line deleted (the current line). The command DELETE has the minimal abbreviation DE.

Another method to delete lines offers the command

Here you have to specify the first and the last number of the lines you wish to delete. DL stands for delete lines.

The third possibility to delete lines allows you to type `d' into the number area of the line you want to be deleted:

After you have pressed the return key, any line you have marked in this way is deleted. You can write the label d wherever you like in the number area.

You can apply this method to delete several lines in a row. The only thing you have to do is to type the number of lines to delete as well:

This deletes the marked line and the following one. If you type the character d at the beginning of the number, you have to use a space after the specification of the number of lines to delete.

this deletes only the marked line, while the following example

deletes three lines.

Additional methods to delete lines are described in other sections.


next previous up contents index
Next: Copying Lines Previous: Inserting Lines Up: First Steps