Commit | Line | Data |
---|---|---|
2fd0a8e1 BJ |
1 | .if !\n(xx .so tmac.e |
2 | .SH | |
3 | Option descriptions | |
4 | .LC | |
5 | autoindent, ai default: noai | |
6 | .HP | |
7 | The | |
8 | .I autoindent | |
9 | option can be used to ease the preparation of structured program text. | |
10 | At the beginning of each | |
11 | .I append , | |
12 | .I change | |
13 | or | |
14 | .I insert | |
15 | command | |
16 | or when a new line is | |
17 | .I opened | |
18 | or created by an | |
19 | .I append , | |
20 | .I change , | |
21 | .I insert , | |
22 | or | |
23 | .I substitute | |
24 | operation within | |
25 | .I open | |
26 | or | |
27 | .I visual | |
28 | mode, | |
29 | .EX | |
30 | looks at the line being appended after, | |
31 | the first line | |
32 | .I changed | |
33 | or the line inserted before and calculates the amount of white space | |
34 | at the start of the line. | |
35 | It then aligns the cursor at the level of indentation so determined. | |
36 | .IP | |
37 | If the user then types lines of text in, | |
38 | they will continue to be justified at the displayed indenting level. | |
39 | If more white space is typed at the beginning of a line, | |
40 | the following line will start aligned with the first non-white character | |
41 | of the previous line. | |
42 | To back the cursor up to the preceding tab stop one can hit | |
43 | \s-2CTRL\s0(D). | |
44 | The tab stops going backwards are defined at multiples of the | |
45 | .I shiftwidth | |
46 | option. | |
47 | You | |
48 | .B cannot | |
49 | backspace over the indent, | |
50 | except by sending an end-of-file with a \s-2CTRL\s0(D). | |
51 | .IP | |
52 | Specially processed in this mode is a line with no characters added | |
53 | to it, which turns into a completely blank line (the white | |
54 | space provided for the | |
55 | .I autoindent | |
56 | is discarded.) | |
57 | Also specially processed in this mode are lines beginning with | |
58 | an `^' or `\(ua' and immediately followed by a \s-2CTRL\s0(D). | |
59 | This causes the input to be repositioned at the beginning of the line, | |
60 | but retaining the previous indent for the next line. | |
61 | Similarly, a `0' followed by a \s-2CTRL\s0(D) | |
62 | repositions at the beginning but without | |
63 | retaining the previous indent. | |
64 | .IP | |
65 | .I Autoindent | |
66 | doesn't happen in | |
67 | .I global | |
68 | commands or when the input is not a terminal. | |
69 | .LC | |
70 | autoprint, ap default: ap | |
71 | .HP | |
72 | The | |
73 | .I autoprint | |
74 | option causes the current line to be printed after each | |
75 | .I delete , | |
76 | .I copy , | |
77 | .I join , | |
78 | .I move , | |
79 | .I substitute , | |
80 | .I tabulate , | |
81 | .I transcribe , | |
82 | .I undo , | |
83 | .I xpand | |
84 | or | |
85 | shift command. | |
86 | This has the same effect as supplying a trailing `p' | |
87 | to each such command. | |
88 | .I Autoprint | |
89 | is suppressed in globals, | |
90 | and only applies to the last of many commands on a line. | |
91 | .LC | |
92 | beautify default: nobeautify | |
93 | .HP | |
94 | Causes all control characters except tab, newline and form-feed | |
95 | to be discarded from the input. | |
96 | A complaint is registered the first time a | |
97 | backspace character is discarded. | |
98 | .I Beautify | |
99 | does not apply to command input, | |
100 | or to text insertion mode. | |
101 | It applies only when you have entered text input mode by issuing a | |
102 | .I insert , | |
103 | .I delete , | |
104 | or | |
105 | .I change | |
106 | command from command mode. | |
107 | .LC | |
108 | directory, dir default: dir=/tmp | |
109 | .HP | |
110 | The | |
111 | .I directory | |
112 | option specifies the directory in which | |
113 | .I ex | |
114 | places it buffer file. | |
115 | If this directory in not | |
116 | writable, then the editor will exit abruptly when it fails to be | |
117 | able to create its buffer there. | |
118 | .LC | |
119 | edited no default | |
120 | .HP | |
121 | The current file is considered to be | |
122 | .I edited | |
123 | when the buffer contents are directly | |
124 | related to it. | |
125 | In this case the | |
126 | .I write | |
127 | command will write to the file even though it exists. | |
128 | In all normal editing patterns the current file is considered | |
129 | .I edited . | |
130 | .IP | |
131 | When the current file name is explicitly changed by the | |
132 | .I file | |
133 | command, | |
134 | then the file is not considered | |
135 | .I edited | |
136 | to protect a previous existing file of the same name | |
137 | from accidental destruction. | |
138 | .IP | |
139 | If a file is not successfully read in by an | |
140 | .I edit | |
141 | command, then it is not considered | |
142 | .I edited | |
143 | so that the possibly incomplete image of the file in the editing buffer | |
144 | will not be accidentally written over its contents. | |
145 | .LC | |
146 | editany, ea default: noea | |
147 | .HP | |
148 | Disables the | |
149 | .I edit | |
150 | and | |
151 | .I read | |
152 | command file sensibility checks. | |
153 | .LC | |
154 | errorbells, eb default: eb | |
155 | .HP | |
156 | If | |
157 | .I eb | |
158 | then error messages are preceded by two bells. | |
159 | The bell ringing in | |
160 | .I open | |
161 | and | |
162 | .I visual | |
163 | on errors is not suppressed by setting | |
164 | .I noeb . | |
165 | .LC | |
166 | fork default: fork | |
167 | .HP | |
168 | If | |
169 | .I nofork | |
170 | shell escapes will be inhibited the first time they are attempted | |
171 | if there has been ``No write'' of the buffer since the last change | |
172 | occurred. | |
173 | In this case, the aborted command can be repeated by using the command | |
174 | form `!!'. | |
175 | If | |
176 | .I fork , | |
177 | the default, | |
178 | a warning is given, but the command is given to a shell for execution | |
179 | anyways. | |
180 | .LC | |
181 | home default: user-dependent | |
182 | .HP | |
183 | The | |
184 | .I home | |
185 | directory is an image of the user's entry in the | |
186 | .I htmp | |
187 | data base. | |
188 | It is used initially as the origin of the file | |
189 | .B \&.exrc | |
190 | and is the default directory for the | |
191 | .I chdir | |
192 | command. | |
193 | .LC | |
194 | hush default: nohush | |
195 | .HP | |
196 | Inhibits interactive diagnostic information including | |
197 | prompts, | |
198 | printing of file names, | |
199 | line and character counts, | |
200 | command feedback, | |
201 | and echoing by the `!' shell escape. | |
202 | .LC | |
203 | ignorecase, ic default: noic | |
204 | .HP | |
205 | If | |
206 | .I ignorecase | |
207 | is set, | |
208 | all upper case characters in the text are mapped to lower case in regular | |
209 | expression matching. | |
210 | In addition, all upper case characters in regular expressions are mapped | |
211 | to lower case except in character class specifications. | |
212 | .LC | |
213 | indicateul, iu default: noiu | |
214 | .HP | |
215 | If | |
216 | .I indicateul | |
217 | is set, | |
218 | non-blank characters overstruck with underlines (and vice-versa) | |
219 | cause output lines to be split into two parts for printing \- | |
220 | the text and the underlining. | |
221 | .LC | |
222 | list default: nolist | |
223 | .HP | |
224 | If | |
225 | .I list | |
226 | is set, | |
227 | all printed lines will be displayed (more) unambiguously, | |
228 | as is done by the | |
229 | .I list | |
230 | command. | |
231 | .LC | |
232 | magic default: magic\u\s-2\(dg\s0\d | |
233 | .FS | |
234 | \(dg Default is \fInomagic\fR for \fIedit\fR. | |
235 | .FE | |
236 | .HP | |
237 | If | |
238 | .I nomagic | |
239 | is set, the number of regular expression metacharacters is greatly reduced, | |
240 | with only `\(ua' or `^' and `$' having magic effects. | |
241 | In addition the metacharacters | |
242 | `~' | |
243 | and | |
244 | `&' | |
245 | of the replacement pattern are treated as normal characters. | |
246 | All the normal metacharacters may be made | |
247 | .I magic | |
248 | when | |
249 | .I nomagic | |
250 | is set by preceding them with a `\e'. | |
251 | .LC | |
252 | mode default: mode=644 | |
253 | .HP | |
254 | .I Mode | |
255 | is the value the permission bits of any file created by the | |
256 | .I write | |
257 | command will have initially. | |
258 | The default allows reading and writing of the created file by its | |
259 | owner, as well as reading of the file by others. | |
260 | .LC | |
261 | notify default: notify=5\u\s-2\(dd\s0\d | |
262 | .FS | |
263 | \(dd \fINotify\fR=1 for \fIedit\fR. | |
264 | .FE | |
265 | .HP | |
266 | The | |
267 | .I notify | |
268 | option specifies a threshold for feedback from commands. | |
269 | Any command which modifies more than the specified number of lines | |
270 | will provide feedback as to the scope of its changes. | |
271 | For commands such as | |
272 | .I global , | |
273 | .I open , | |
274 | .I undo , | |
275 | and | |
276 | .I visual | |
277 | which have potentially more far reaching scope, | |
278 | the net change in the number of lines in the buffer is | |
279 | presented at the end of the command, subject to this same threshold. | |
280 | Thus notification is suppressed during a | |
281 | .I global | |
282 | command on the individual commands performed. | |
283 | .LC | |
284 | number default: nonumber | |
285 | .HP | |
286 | The | |
287 | .I number | |
288 | option may be set to cause all output lines to be printed with their | |
289 | line numbers. | |
290 | In addition each input line will be prompted for by supplying the line number | |
291 | it will have. | |
292 | .LC | |
293 | open default: open\u\s-2\(dg\s0\d | |
294 | .FS | |
295 | \(dg \fINoopen\fR for \fIedit\fR. | |
296 | .FE | |
297 | .HP | |
298 | If | |
299 | .I noopen | |
300 | then the commands | |
301 | .I open | |
302 | and | |
303 | .I visual | |
304 | are not permitted. | |
305 | This is set for | |
306 | .I edit | |
307 | to prevent confusion resulting from accidental entry to | |
308 | .I open | |
309 | or | |
310 | .I visual | |
311 | mode. | |
312 | .LC | |
313 | optimize default: optimize | |
314 | .HP | |
315 | If | |
316 | .I optimize | |
317 | is set, | |
318 | and the terminal permits, | |
319 | throughput of text is expedited by setting the terminal | |
320 | to not do automatic carriage returns and to | |
321 | .I noecho | |
322 | mode when printing more than one (logical) line of output. | |
323 | This can greatly speed output on terminals without addressible | |
324 | cursors if leading blanks are present, but causes all type-ahead | |
325 | to be lost. | |
326 | With | |
327 | .I optimize , | |
328 | after a multi-line print you cannot type ahead until the prompt reappears. | |
329 | .LC | |
330 | printall, pa default: noprintall | |
331 | .HP | |
332 | If | |
333 | .I printall | |
334 | is set then all characters will be printed in the output | |
335 | as they appear in the line when the | |
336 | .I print | |
337 | command is used. | |
338 | Normally, the blanks and tabs in the line may be rearranged | |
339 | or replaced with cursor addressing to improve throughput, | |
340 | and non-printing characters are printed as `?'. | |
341 | With | |
342 | .I printall | |
343 | these modifications to the pure line text are suppressed. | |
344 | .LC | |
345 | prompt default: prompt | |
346 | .HP | |
347 | Command mode input is prompted for with a `:' if | |
348 | the | |
349 | .I prompt | |
350 | option is set. | |
351 | .LC | |
352 | scroll default: scroll=12 | |
353 | .HP | |
354 | The | |
355 | .I scroll | |
356 | option determines the number of logical lines scrolled when an end-of-file | |
357 | is received from a terminal input. | |
358 | .LC | |
359 | shell, sh default: sh=/bin/sh | |
360 | .HP | |
361 | The | |
362 | .I shell | |
363 | option gives the path name of the shell forked for | |
364 | the shell escape command `!'. | |
365 | .LC | |
366 | shiftwidth, sw default: sw=8 | |
367 | .HP | |
368 | The | |
369 | .I shiftwidth | |
370 | option gives the width a software tab stop. | |
371 | This is used in reverse tabbing with \s-2CTRL\s0(D) when using | |
372 | .I autoindent | |
373 | to append text, | |
374 | and by the shift commands. | |
375 | Note that the tab character always references tab stops every eight | |
376 | positions and is | |
377 | .B not | |
378 | affected by this option. | |
379 | .LC | |
380 | sticky default: nosticky | |
381 | .HP | |
382 | If | |
383 | .I sticky | |
384 | is set then flags like `l', `#' and `:', | |
385 | given after a command, | |
386 | stick around until new flags are specified, | |
387 | allowing more lines to be printed in the same way | |
388 | without permanently changing options or continually hitting these keys. | |
389 | .LC | |
390 | terse default: noterse | |
391 | .HP | |
392 | If | |
393 | .I terse | |
394 | is set, | |
395 | shorter error diagnostics are produced. | |
396 | These are designed for the experienced user. | |
397 | .LC | |
398 | ttytype, tty default: terminal dependent | |
399 | .HP | |
400 | This option gives the terminal type of the output device. | |
401 | Setting | |
402 | .I ttytype | |
403 | indicates the special capabilities of the terminal in use. | |
404 | Current terminal types are defined by the | |
405 | .I ttycap | |
406 | data base. | |
407 | This data base is conveniently handled using the | |
408 | .I ttytype | |
409 | program. | |
410 | For most hard-wired ports, | |
411 | .I ttytype | |
412 | should be set correctly automatically. | |
413 | A mechanism exists using | |
414 | .I ttytype | |
415 | (VI) | |
416 | for setting the type semi-automatically on dial-up lines. | |
417 | .LC | |
418 | visualmessage, vm default: novm | |
419 | .HP | |
420 | Interconsole messages are prohibited during | |
421 | .I visual | |
422 | commands if | |
423 | .I novm | |
424 | is set. | |
425 | .LC | |
426 | window default: window=23 | |
427 | .HP | |
428 | The number of lines in a text window for the | |
429 | .I z | |
430 | command is specified by the | |
431 | .I window | |
432 | option. | |
433 | .LC | |
434 | wrap default: wrap | |
435 | .HP | |
436 | If | |
437 | .I nowrap | |
438 | then searches using the regular expressions in addressing | |
439 | will not wrap around past the end of the file. |