Previous Topic: Using the Text Editor Commands

Next Topic: Line Command Examples


Line Commands

The line on which the line command is entered is referred to as the current line in the following text.

The following text editor line commands are supported:

Ann

Inserts copied or moved lines after the current line, nn times. If nn is omitted, the lines are inserted once only.

Bnn

Inserts copied or moved lines before the current line, nn times. If nn is omitted, the lines are inserted once only.

Cnn

Copies nn lines starting from the current line. To put the copy after or before a line, enter A or B next to that line. To copy the text over a sequence of lines, enter Onn or OO.

If nn is omitted, only the current line is copied.

CC

Copies a sequence of lines.

  1. Enter CC next to the first and last line you want to copy.
  2. To put the copy after or before a line, enter A or B next to that line. To copy the text over a sequence of lines, enter Onn or OO.
COLS

Inserts a line containing column numbers after the current line.

Dnn

Deletes nn lines starting from the current line. If nn is omitted, only the current line is deleted.

DD

Deletes a sequence of lines. Enter DD next to the first and last line.

Inn

Inserts nn blank lines after the current line. If nn is omitted, one blank line is inserted.

ID

Inserts lines of text containing the current date and time, the user ID, name and telephone number.

LCnn

Converts alphabetic characters to lowercase on the next nn lines. If nn is omitted, only the current line is converted.

LCLC

Converts alphabetic characters to lowercase in a block of lines. Enter LCLC next to the first and last lines to convert.

Mnn

Moves nn lines starting from the current line. To move the lines after or before another line, enter A or B next to that other line. To move the text over a sequence of lines, enter Onn or OO.

If nn is omitted, only the current line is moved.

MM

Moves a sequence of lines.

  1. Enter MM next to the first and last line you want to move.
  2. To move the lines after or before another line, enter A or B next to that other line. To move the text over a sequence of lines, enter Onn or OO.
NA

Inserts the contents of the Notepad after the current line.

NB

Inserts the contents of the Notepad before the current line.

Nnn

Appends nn lines to the Notepad. If nn is omitted, only the current line is appended to the Notepad.

NN

Appends a sequence of lines to the Notepad. Enter NN next to the first and last line.

Onn

Overlays copied or moved lines over the next nn lines. If nn is omitted, it defaults to the number of lines being moved or copied.

OO

Overlays copied or moved lines over a sequence of lines. Enter OO next to the first and last line in the sequence.

QA

Inserts queued lines after the current line.

QB

Inserts queued lines before the current line.

Qnn

Queues nn lines. If nn is omitted, only the current line is queued. This command overwrites currently queued lines.

Q+nn

Appends nn lines to the end of the queue. If nn is omitted, only the current line is appended.

QQ

Queues a sequence of lines. Enter QQ next to the first and last line. This command overwrites currently queued lines.

QQ+

Appends a block of lines to the end of the queue. Enter QQ+ next to the first and last line.

Rnn

Repeats the current line nn times. If nn is omitted, the current line is repeated once.

RRnn

Repeats a sequence of lines nn times. Enter RRnn next to the first and last line to repeat. If nn is omitted, the sequence of lines is repeated once only.

TE

Text entry mode. Blank input lines are inserted after the current line allowing the entry of many lines of text. When the Enter key is pressed, the text is flowed within the current margins and inserted.

TF

Flows text to the current right margin preserving the indentation of each line from column 1. Text is flowed from the current line to the end of the paragraph. The end of the paragraph is determined by a blank line or a change in indentation.

TFnn

This command is the same as TF except that it uses the right margin specified by nn.

TFM

Flows text to the current left and right margins preserving only the relative indentation between the current line and the following line. Text is flowed from the current line to the end of the paragraph. The end of the paragraph is determined by a blank line or a change in indentation.

TM

Merges text. The current line is split at the cursor position as for a TS command. Text Entry mode is then invoked. On exit from Text Entry mode, a TF is performed from the current line through to the end of the paragraph.

TS

Splits text. A new line is inserted after the current line, and the text from the cursor position to the end of the line is moved to the new line.

UCnn

Converts alphabetic characters to uppercase on the next nn lines. If nn is omitted, only the current line is converted.

UCUC

Converts alphabetic characters to uppercase in a block of lines. Enter UCUC next to the first and last lines to convert.

)nn

Shifts the data on the current line nn positions to the right. Any data shifted beyond the maximum record length is lost. If nn is omitted, the data is shifted one position to the right.

(nn

Shifts the data on the current line nn positions to the left. Any data shifted beyond column one is lost. If nn is omitted, the data is shifted one position to the left.

))nn

Shifts the data on a block of lines nn positions to the right. Enter ))nn next to the first and last lines to have their data shifted. Any data shifted beyond the maximum record length is lost. If nn is omitted, the data is shifted one position to the right.

((nn

Shifts the data on a block of lines nn positions to the left. Enter ((nn next to the first and last lines to have their data shifted. Any data shifted beyond column one is lost. If nn is omitted, the data is shifted one position to the left.