e

ex(1)

ex(1)

magic

Affect the interpretation of characters in regular expressions and substitution replace-

 

ment strings (see Regular Expressions and Replacement Strings above). Reversed by

 

nomagic. The ex, vi, and view default is magic. The edit and vedit default

 

is nomagic.

mesg

Allows other users to use the write command (see write(1)) to send messages to

 

your terminal, possibly disrupting the screen display. Unsetting this option

 

(nomesg) blocks write permission to your terminal from other system users while

 

you are using the editor. Reversed by nomesg. The default is mesg.

modelines (ml)

If set when the editor reads in a ®le, any ex commands embedded in the ®rst ®ve and

 

last ®ve lines of the ®le are executed after .exrc and EXINIT commands are pro-

 

cessed but before editing control is given to the user. The ex commands must be

 

pre®xed by ex: or vi: and terminated by : in a single line. Any number of other

 

characters with the exception of the colon (:) can precede or follow the embedded

 

command. Reversed by nomodelines (noml). The default is nomodelines .

novice

Use the version of the editor available for novices, known as edit or vedit.

 

Reversed by nonovice. The ex, vi, and view default is nonovice. The edit,

 

and vedit default is novice.

number (nu)

Cause lines to be printed with line numbers. Reversed by nonumber (nonu). The

 

default is nonumber.

optimize (opt)

Suppress automatic carriage returns on terminals that do not support direct cursor

 

addressing. This streamlines text output in certain situations such as when printing

 

multiple lines that contain leading whitespace. Reversed by nooptimize (noopt).

 

The default is nooptimize.

paragraphs= pair-string(para)

The value of this option is a string whose successive pairs of characters specify the names of text-processing macros that begin paragraphs. (A macro appears in the text in the form .xx, where the . is the ®rst character in the line.)

 

If any macros have a single-character name, use a space character to substitute for

 

the missing second character in the name. To type a space character in such situa-

 

tions, precede the space with a backslash (\) to prevent the editor from interpreting it

 

as a delimiter.

 

 

The default is paragraphs=IPLPPPQPP\ LIpplpipnpbp.

prompt

When set, command mode input is prompted for with a colon (:); when unset, no

 

prompt is displayed. Reversed by noprompt. The default is prompt.

readonly (ro)

Set the readonly ¯ag for the ®le being edited, thus preventing accidental overwrit-

 

ing at the end of the session. This option is equivalent to invoking ex, edit, vi, or

 

vedit with the -Roption or using the view command. Reversed by

 

noreadonly (noro). The ex, edit, vi, and vedit default is noreadonly.

 

The view default is readonly.

 

redraw

Simulate an intelligent terminal on a dumb terminal. During input mode, lines are

 

continuously reprinted as text is entered. Since this is likely to require a large

 

amount of output to the terminal, it is useful only at high transmission speeds. If

 

noredraw is set, lines are reprinted only when input mode is terminated and

 

deleted lines are marked with an @ in the left margin. Reversed by noredraw. The

 

default is redraw.

 

remap

If set, macro translation allows for macros de®ned in terms of other macros; transla-

 

tion continues until the ®nal product is obtained. If unset, a one-step translation only

 

is done. Reversed by noremap. The default is remap.

report=n

The value of n gives the number of lines that must be changed by a command before a

 

report is displayed on the number of lines affected. If n is 5, then changes are

 

reported for 6 or more lines. The ex, vi, and view default is report=5. The

 

edit, and vedit default is report=1.

 

scroll=n

The value of n determines the number of lines scrolled by a ÃD command and the

 

number of lines displayed by the z command (twice the value of scroll). The default is

 

half the value of the window option.

 

Section 1254

− 14 −

HP-UX Release 11i: December 2000