editor.de

Command/Editor, Releases: AP and R83

Delete line(s).

Syntax

de de#lines{/} de#lines/string de#lines/string/start.col-end.col

Description

deletes one or more lines from the current item, starting at the current line number position.

If a string is specified, only the lines containing the string are deleted.

The 'start.col' and 'end.col' parameters respectively indicate the beginning and ending column ranges in which string comparisons are made. See the 'c' command for determining column positions.

A 'de' command ending in a delimiter displays the lines as they are deleted. Note that the line pointer is not incremented.

Lines are not actually deleted until the item is 'flipped' with an 'f' command. See the 'x' ('oops') command to cancel the 'de'.

Example

.de<return>

This deletes the current line.

.de10<return>

This deletes the current line and the next nine lines.

.de10/<return>

This deletes and displays the current and next nine lines.

.de10/abc<return>

This deletes lines containing the string, 'abc', in the current and
next nine lines. Any lines not containing this string will not be deleted.

.de10/abc/5-9<return>

This deletes and displays the lines containing the string, 'abc', in
column ranges 5 through 9, in the current and next nine lines. Any lines not
containing this string, starting at column position 5, will not be deleted.

See Also

Command Name Type Description
editor.i Command Insert.
editor.c Command Column display
editor.introduction Introductory The line-oriented editor.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.