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