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