Commit | Line | Data |
---|---|---|
2fd0a8e1 BJ |
1 | .if !\n(xx .so tmac.e |
2 | .SH | |
3 | Options | |
4 | .PP | |
5 | Each instance of the editor has a set of options, | |
6 | which can be set to tailor it to your liking. | |
7 | The command | |
8 | .I edit | |
9 | invokes a version of | |
10 | .I ex | |
11 | designed for more casual or beginning | |
12 | users by changing the default settings of some of these options. | |
13 | .PP | |
14 | There are three kinds of options: | |
15 | Boolean, | |
16 | numeric, | |
17 | and string options. | |
18 | Options are controlled by the | |
19 | .I set | |
20 | command | |
21 | which can be used to show their current values | |
22 | or to assign new values. | |
23 | The options, | |
24 | their defaults, | |
25 | and a short description of each are given in the following table. | |
26 | A more complete description of each option will be given near the | |
27 | end of this reference manual. | |
28 | .TS | |
29 | box; | |
30 | c s s s | |
31 | c | c | l | l | |
32 | lI | lI | l | lR. | |
33 | Editor options | |
34 | _ | |
35 | Name Abbr Default Description | |
36 | _ | |
37 | autoindent ai \fInoai\fR Automatic indentation | |
38 | autoprint ap \fIap\fR Automatic print after change | |
39 | beautify \fR-\fP \fInobeautify\fR Discard most non-graphic characters | |
40 | directory dir \fIdir\fR=/tmp Directory for editor buffer file | |
41 | editany ea \fInoea\fR Allow editing of any file | |
42 | edited \fR-\fP \fR-\fP Current file is \fIedited\fR | |
43 | errorbells eb \fIeb\fR Ring terminal bell on errors | |
44 | fork \fR-\fP \fIfork\fR Allow shell escape without write | |
45 | home \fR-\fP \fIhome\fR=homedir\u\s-2\(dg\s0\d Home directory | |
46 | hush \fR-\fP \fInohush\fR Inhibit all feedback | |
47 | ignorecase ic \fInoic\fP Ignore upper/lower case in matching | |
48 | indicateul iu \fInoiu\fP Indicate underlining on \s-2CRT\s0's | |
49 | list \fR-\fP \fInolist\fP Print lines (more) unambiguously | |
50 | magic \fR-\fP \fImagic\fP\u\s-2\(dd\s0\d More magic characters in regular expressions | |
51 | \mode \fR-\fP \fImode\fP=644* Default create mode for files | |
52 | notify \fR-\fP \fInotify\fP=5\u\s-2\(dd\s0\d Feedback threshold on changes | |
53 | number \fR-\fP \fInonumber\fP Number all (input and output) lines | |
54 | open \fR-\fP \fIopen\fP\u\s-2\(dd\s0\d Allow open and visual commands | |
55 | optimize \fR-\fP \fIoptimize\fP Enhance throughput (but lose some typeahead) | |
56 | printall pa \fIprintall\fP Print all characters | |
57 | prompt \fR-\fP \fIprompt\fP Prompt for input | |
58 | scroll \fR-\fP \fIscroll\fP=12 Number of logical lines in a scroll | |
59 | shell sh \fIsh\fP=/bin/sh Shell for \s-2UNIX\s0 escape | |
60 | shiftwidth sw \fIsw\fP=8 Shift width (tab stop for \fIautoindent\fP) | |
61 | sticky \fR-\fP \fInosticky\fP Post command flags stick around | |
62 | terse \fR-\fP \fInoterse\fP Shorter error diagnostics | |
63 | ttytype tty \fItty\fR=unknown\u\s-2\(dg\s0\d Terminal type | |
64 | visualmessage vm \fInovm\fR \fRInterconsole message inhibition during \fIvisual\fR | |
65 | window \fR-\fP \fIwindow\fP=23 Window size for \fIz\fR command | |
66 | wrap \fR-\fP \fIwrap\fP Context addressing searches go past top/bottom | |
67 | _ | |
68 | .T& | |
69 | lp-2 s s s. | |
70 | \(dg User-dependent (from \fIhtmp\fR data base) | |
71 | \(dd \fINomagic\fR, \fInotify\fR=1, \fInoopen\fR if invoked as \fIedit\fR | |
72 | * Always set and given in octal | |
73 | .TE | |
74 | .bp |