This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tutorials:edit [2014/01/28 16:28] papa created |
tutorials:edit [2016/10/20 03:44] (current) papa [More Commands] |
||
---|---|---|---|
Line 1: | Line 1: | ||
**EDIT** is a line-oriented text editor for TOPS-20 on TWENEX.ORG. | **EDIT** is a line-oriented text editor for TOPS-20 on TWENEX.ORG. | ||
- | Since EDIT's executable file name is the same as the EXEC command for invoking the default editor, you must use the following command to start EDIT unless you have set it as your default editor. | + | ===== Invocation ===== |
- | <code> | + | EDIT is usually started with the '' |
- | @R EDIT | + | |
- | </code> | + | ===== Command Line Editing ===== |
+ | |||
+ | As a line-oriented editor, all editing tasks are accomplished in EDIT by entering commands at the EDIT command prompt ('' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== Basic Commands ===== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== More Commands ===== | ||
+ | |||
+ | TWENEX' | ||
+ | |||
+ | Summary of EDIT commands | ||
+ | |||
+ | I Insert | ||
+ | | ||
+ | . Move pointer | ||
+ | D Delete | ||
+ | K Kill page mark [/<page number> | ||
+ | R Replace | ||
+ | E End (Exit to command level) | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | G Go (Exit and do last LOAD-class command) | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | B Backup - (same as E but leaves you at EDIT command level) | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | M Mark [< | ||
+ | N Number | ||
+ | | ||
+ | | ||
+ | L List (on LPT) | ||
+ | J Join [< | ||
+ | F Find [< | ||
+ | S Substitute | ||
+ | C Copy [< | ||
+ | or | ||
+ | or | ||
+ | T Transfer | ||
+ | X eXtend | ||
+ | H Help (types this text) | ||
+ | ? Types list of available commands | ||
+ | <LF> Same as P.+1 | ||
+ | $ Same as P.-1 | ||
+ | | ||
+ | |||
+ | A Alter | ||
+ | |||
+ | ? Print list of alter commands | ||
+ | | ||
+ | -nD Delete next/last characters | ||
+ | E Finish with no printing | ||
+ | -nF< | ||
+ | | ||
+ | J Break line and stick rest at front of next | ||
+ | -nK< | ||
+ | L Print line and recycle | ||
+ | P Print line and recycle to current position | ||
+ | Q Quit ALTER (restore original line) | ||
+ | -nR< | ||
+ | | ||
+ | X< | ||
+ | -n< | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | ^U Quit and restart ALTER | ||
+ | |||
+ | EDIT parameters: | ||
+ | |||
+ | name | ||
+ | |||
+ | . | ||
+ | ? | ||
+ | =? list printable switches | ||
+ | BAK | ||
+ | BIG | ||
+ | C64 | ||
+ | C128 y | ||
+ | CASE n | ||
+ | DECIDE | ||
+ | DPY | ||
+ | ERROR | ||
+ | EXPERT | ||
+ | INCREMENT | ||
+ | INSERT | ||
+ | ISAVE | ||
+ | LOCATION | ||
+ | LOWER | ||
+ | M33 | ||
+ | M37 | ||
+ | NAME y | ||
+ | NOBAK | ||
+ | NODECIDE | ||
+ | NONSEPARATORS y | ||
+ | NONUMBER | ||
+ | NOVICE | ||
+ | NUMBER | ||
+ | | ||
+ | OLD | ||
+ | OPTION | ||
+ | PLINES | ||
+ | | ||
+ | RONLY | ||
+ | READONLY | ||
+ | RUN | ||
+ | SAVE y | ||
+ | SEPARATORS | ||
+ | START | ||
+ | STEP y | ||
+ | STRING | ||
+ | UNSEQUENCE | ||
+ | UPPER | ||
+ | WINDOW | ||
+ | |||
+ | * All settable parameters may be specified as switches in the | ||
+ | initial command string. | ||
+ | |||
+ | | ||
+ | |||
+ | Replacement: | ||
+ | | ||
+ | | ||
+ | |||
+ | Match: | ||
+ | | ||
+ | | ||
+ | | ||
+ | ^ ': | ||
+ | |||
+ | Positions: | ||
+ | | ||
+ | | ||
+ | |||
+ | EDIT definitions and meanings: | ||
+ | |||
+ | <range> ::= < | ||
+ | :< | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | . or * or ^][(+-)< | ||
+ | |||
+ | < | ||
+ | . or * or ^][(+-)< | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | Options: | ||
+ | |||
+ | , | ||
+ | , | ||
+ | , | ||
+ | , | ||
+ | , | ||
+ | |||
+ | Special functions of the " | ||
+ | |||
+ | I< | ||
+ | | ||
+ | | ||
+ | |||
+ | I/< | ||
+ | where start is the value of the START switch (Originally, | ||
+ | the START switch is set at 100). | ||
+ | |||
+ | I< | ||
+ | table of aesthetic values. | ||
+ | |||
+ | I^ inserts a line at the top of the page, halfway between line | ||
+ | 0 and the first line. | ||
+ | |||
+ | EDIT Command Format: | ||
+ | |||
+ | @CREATE (FILE) /switches input.typ.gen | ||
+ | or, | ||
+ | @EDIT (FILE) /switches input.typ.gen (OUTPUT AS) output.typ.gen | ||
+ | |||
+ | CREATE requires that input.typ.gen is a new file; EDIT | ||
+ | works regardless of whether the file exists or not. | ||
+ | |||
+ | / | ||
+ | be recognized. | ||
+ | the entire command is ignored. | ||
+ | |||
+ | input.typ.gen, | ||
+ | specifications; | ||
+ | defaults to input.typ.-1 if it is not explicitly typed. | ||
+ | |||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | * [[http:// | ||
+ | * //(__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.)// | ||