Model 204 line editor commands
Entry and exit commands
Entry and exit commands
| Command | Meaning |
|---|---|
| EDIT [n | name1 [,m |,name2]] | Edits procedure n or name1, defining m or name2 as the result. |
| [m |’name’] END | Exits the line editor, saving the editing in procedure m or ’name’. |
| [m |’name’] GO | Exits the line editor, saving the editing in procedure m or ’name’ and executing an INCLUDE command. |
| QUIT | Exits the line editor without saving the editing. |
| *CANCEL (in columns 1-7) | Cancels the current editor command, if not completed. |
Pointer and display commands
Pointer and display commands
| Command | Meaning |
|---|---|
| J | Positions the pointer at the first character of the text. |
| Z | Positions the pointer just past the last character of the text. |
| C | Moves the pointer one character to the right within the text. |
| nC | Moves the pointer n characters to the right. |
| -nC | Moves the pointer n characters to the left. |
| L | Moves the pointer to the beginning of the next line. |
| nL | Moves the pointer to the beginning of the nth line. |
| -nL | Moves the pointer to the beginning of the nth previous line. |
| 0L | Moves the pointer to the beginning of the current line. |
| SdXYZd | Searches for the next occurrence of XYZ (delimited by d) in the text and positions the pointer just past it. |
| nSdXYZd | Searches for the nth occurrence of XYZ (delimited by d) in the text and positions the pointer just past it. |
| - | Displays the number of the line at which the pointer is currently positioned. |
| T | Displays the line in which the pointer is currently positioned. |
| nT | Displays n lines, beginning with the current line. |
| -nT | Displays the previous n lines and the current line up to the pointer. |
| 0T | Displays the part of the line before the pointer. |
| 1T | Displays the part of the line after the pointer, beginning with the current character. |
| HT | Displays all the text that is being edited. |
| nHT | Displays the n lines surrounding the current line. |
Change commands
Change commands
| Command | Meaning |
|---|---|
| Xline | Replaces the current line with line. |
| Yline | Inserts line just before the current line. |
| K | Deletes the current line. |
| nK | Deletes n lines from the current pointer location through the n-1 subsequent lines. |
| -nK | Deletes the previous n lines through the current pointer location. |
| 0K | Deletes the part of the line before the pointer. |
| 1K | Deletes the part of the line after the pointer beginning with the current character. |
| HK | Deletes all the text being edited. |
| nHK | Deletes the n lines surrounding the current line. |
| D | Deletes the current character. |
| nD | Deletes the next n characters, including the current character. |
| -nD | Deletes the previous n characters. |
| IdXYZd | Inserts string XYZ (delimited by d) just before the pointer and positions the pointer just past the inserted string. |
| RdXYZdABCd | Replaces the next occurrence of the string XYZ with ABC (delimited by d) and positions the pointer just past the replaced string. |
| nRdXYZdABCd | Replaces the next n occurrences of the string XYZ with ABC (delimited by d) and positions the pointer just past the last replacement. |
| (commands) commands | Repeats the parenthesized commands 100 times. |
| n (commands) commands | Repeats the parenthesized commands n times. |
| {n | ’name’} I | Inserts procedure n or ’name’ just before the pointer location. |