|
|
1.1 root 1: V7.13 81/07/25 22:51 EED
2:
3: After most commands, the following letters may be entered:
4: p print line
5: l list line showing control characters as ^X
6: b list line indicating bracket and parenthesis nesting
7: q list line showing quoted string lengths
8:
9: !cmd execute "cmd" as a UNIX command
10: @[p] indirect -- read commands from last "indirected" file
11: until end, then return to reading from
12: keyboard. "p" echoes characters as they are read
13: @[p] FILE set default "indirect" file to "FILE", then same as above
14: [.,.]|cmd pipe addressed lines to UNIX command
15: [.,.]||cmd replace addressed lines with command output
16: [.,.]||NNcmd pipe lines to command, delete, insert output after NN
17: [.,.]|>[NN]cmd pipe lines to command, output after NN (last line sent)
18: [ . ]|<cmd insert command output after addressed line
19: |- ignore non-zero exit status in || command
20: |+ turn on strict exit status checking
21: [.+1]: print out one "page" from addressed line
22: [ . ]* print out one "page" with addressed line at center
23: [ . ]:- print out one "page" with addressed line at bottom
24: [ . ]a insert text after addressed line
25: [ . ]a TEXT insert one line of "TEXT" after addressed line
26: [.,.]a/TEXT/ tack "TEXT" at end of each addressed line
27: bNN set browse count to "NN" (default 1)
28: [.,.]c delete addressed lines, enter insert mode
29: [.,.]c/OLD/NEW/ change "OLD" text to "NEW" in addressed lines
30: optional "g" after: change all occurrences
31: of "OLD" to "NEW" in
32: each line
33: "p" after: print line after changing
34: digit(s) after: change only the "nn"th
35: occurrence in each line
36: [.,.]coDD copy addressed lines to after destination line "DD"
37: [.,.]d delete addressed lines
38: d PATH do a "chdir" to "PATH"
39: d=NN set depth of screen to NN (default 23)
40: e re-edit current file (scratch and read in again)
41: ei edit immediate (no confirm message)
42: e FILE edit specified file
43: ei FILE edit immediate the file
44: [.,.]exp expand tab characters in addressed lines to
45: tab stops specified by "t," command
46: e=C set eol character to "C"
47: e- turn off long error messages
48: e+ turn on long error messages (default)
49: eNN list error message NN
50: f print out current filename
51: f FILE change current filename to "FILE"
52: f=C set tab fill character to "C" (default is \t [Ctrl-I])
53: [1,$]g/STR/XXX search edit file for all lines that contain "STR"
54: then perform edit command "XXX" upon them
55: [1,$]g/STR/vXXX same as above, but print each line that matches
56: "STR" and ask if user wishes to process it
57: "n" skips that line, otherwise process it.
58: hNN print column headings to column "NN" (default 71)
59: he[lp] display command syntax
60: [ . ]i insert lines before addressed line
61: [ . ]i TEXT insert one line of "TEXT" before addressed line
62: [ . ]i/TEXT/ tack "TEXT" at beginning of each addressed line
63: [-,.]j join addressed lines to form one line
64: [-,.]j/TEXT/ join addressed with TEXT between them
65: k list all "marked" lines
66: [.,.]kX mark addressed line(s) with name character "X"
67: [.,.]l list addressed lines showing all control characters as ^X
68: [.+1]la list one "page" from addressed line showing all
69: control characters as in "l" command above
70: as "^X", except tab is "->" and backspace is "-<".
71: m toggle special-chars on/off
72: [.,.]mDD move addressed lines to after destination line "DD"
73: [.,.]moDD (same)
74: n toggle line numbering on/off
75: n- turn off | line numbering
76: n+ turn on | line numbering
77: [.,.]o repeat old (previous) command possibly with
78: new line bounds
79: [.,.]p print addressed lines
80: [ . ]pa print out one "page" from addressed line
81: pp print entire file
82: q exit editor -- if file has been changed but not
83: written, prompt will be issued for confirmation
84: qi exit editor immediately without writing file, and
85: without confirming
86: q=C[C] set string quote character(s)
87: [ $ ]r read current file after addressed line
88: [ $ ]r FILE read "FILE" after addressed line
89: s stop -- if file has been changed since last
90: write command (if any), write onto current
91: file, and exit editor
92: saNN set the "auto-save" count to NN (decimal)
93: "sa0" will disable auto-save (default 35)
94: [.,.]s/OLD/NEW/ change "OLD" text to "NEW" in addressed lines
95: t list all tab stops
96: [.,.]tDD copy (transfer) addressed lines to after
97: destination line "DD"
98: t,NN, ... set tab stops in columns NN, NN, ...
99: if NN is zero or null, all tab stops cleared
100: t=C set tab character to "C"
101: u undo -- recover last changed line
102: [1,$]v/STR/XXX search edit file for all lines that contain "STR"
103: then perform edit command "XXX" upon all other lines
104: [1,$]v/STR/vXXX same as above, but print each line that matches
105: "STR" and ask if user wishes to process it.
106: "n" skips that line, otherwise process it.
107: [1,$]w write on current edit file
108: [1,$]w> append onto end of current edit file
109: [1,$]w FILE write on "FILE"
110: [1,$]w>FILE append onto end of "FILE"
111: [1,$]wi FILE write (immediate); overrides write-lock if possible
112: w=NN set screen width to NN (default 80)
113: [ . ]x undelete -- most recently deleted (via "d" or "c")
114: block of lines may be recovered via "x" command
115: they are placed after the addressed line
116: y print out one "page" upon receipt of an interrupt
117: y- return to default interrupt processing ("INTERRUPT!")
118: [ . ]y+ print out one "page" starting at addressed line upon
119: receipt of interrupt
120:
121:
122: Editor flags:
123:
124: -! disallow use of the ! command
125: -@FNM preset "indirect" file to FNM
126: -a APL mode
127: -A APL mode for apl-equipped terminals (also sets -a)
128: -b create "file.bak" on entry
129: -cNN crt depth in lines
130: -d don't delete .tmp file
131: -e echo input commands
132: -f create mode
133: -h edit "huge" file
134: -i file.int on interrupt
135: -k "kill" long error messages
136: -lC set eol char to "C"
137: -mNN mod cnt for autosave
138: -n no line numbers
139: -o no seek to EOF on error
140: -O over-ride write-locked file if possible
141: -p force prompts for pipe
142: -q don't inhibit quits
143: -r enable special character meaning
144: -s silent mode
145: -tC set tab char to "C"
146: -vC set tab fill char to "C"
147: -wNN crt width in columns
148: -y page on interrupt
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.