User Tools

Site Tools


tutorials:edit

This is an old revision of the document!


EDIT is a line-oriented text editor for TOPS-20 on TWENEX.ORG.

Invocation

EDIT is usually started with the EDIT command. However, if you have customized your default editor, the EDIT command may invoke a different editor. To run EDIT without disturbing your default editor setting, use the command SYS:EDIT or R EDIT.

Command Line Editing

As a line-oriented editor, all editing tasks are accomplished in EDIT by entering commands at the EDIT command prompt (*). If you wish to make changes to the current command line before submitting it (by pressing Enter), you may use the following keys:

  • Delete (usually mapped to the Back Space key) – Delete one character to the left of the cursor.
  • Ctrl-U – Delete the entire command line without submitting it.

Commands

  • Ia – Insert mode after line a. End with Esc key.
  • E – Save file and return to EXEC.
  • EQ – Discard unsaved changes and return to EXEC.
  • Pa[:b] – Print line a (through line b) on terminal.
  • Da[:b] – Delete line a (through line b).
  • Ra – Replace line a
  • St1Esct2Esca – Substitute text t2 for text t1 on line a.

References

  • (EDIT User's Guide and EDIT Reference Manual were published by DEC as part of the TOPS-20 Software Notebook series, but the author has been unable to locate any printed or electronic copies of either manual.)
tutorials/edit.1471421715.txt.gz · Last modified: 2016/08/17 08:15 by papa