e

ex(1)

ex(1)

timeoutlen= n Set, in milliseconds (ms), the length of the macro timeout period (see the timeout editor option). This option has no effect unless timeout is set. The value of n must be at least 1. The default is timeoutlen=500 (half a second).

ttytype=termtype (tty)

 

De®ne the type of terminal being used with the editor. See the term editor option

 

for details. There is no difference between the term and ttytype editor options.

 

Setting either one results in both being changed.

warn

Before executing a ! or shell command escape, display the message [No write

 

since last change] if the work area has been modi®ed since it was last loaded

 

or fully written to a ®le. Reversed by nowarn. The default is warn.

window=lines (wi)

Set the number of lines in a text window in visual mode. The default value is one less than the size of your terminal screen (as de®ned by the LINES environment variable, if set, or the entry for your terminal in the terminfo(4) data base otherwise). How- ever, if the terminal baud rate (see stty(1) is set to less than 1200 or 2400, the default value is reduced to a maximum of 8 or 16 lines, respectively. The startup value can be speci®ed with the -wcommand-line option.

w300=lines

If the terminal baud rate is less than 1200, set the window editor option to the value

 

speci®ed.

w1200=lines

If the terminal baud rate is greater than or equal to 1200 but less than 2400, set the

 

window editor option to the value speci®ed.

w9600=lines

If the terminal baud rate is greater than or equal to 2400, set the window editor

 

option to the value speci®ed.

wrapmargin= n (wm)

 

In visual mode only, if n is greater than zero, a newline is automatically inserted in an

 

input line at a word boundary, so that lines end at least n spaces from the right mar-

 

gin of the terminal screen. The default is wrapmargin=0 .

wrapscan (ws)

When set, editor searches using /re/ (or ?re?) continue silently from the beginning

 

(or end) of the ®le upon reaching the end (or beginning) of the ®le (that is, the scan

 

"wraps around"). When unset, editor searches stop at the beginning or the end of the

 

®le, as appropriate. Reversed by nowrapscan (nows). The default is wrapscan.

writeany (wa)

Inhibits the checks otherwise made before write commands, allowing a write to any

 

®le (provided the system allows it). Reversed by nowriteany (nowa). The default

 

is nowriteany.

EXTERNAL INFLUENCES

Environment Variables

COLUMNS This variable shall override the system-selected horizontal screen size.

LINES overrides the system-selected vertical screen size, used as the number of lines in a screenful and as the vertical screen size in visual mode.

PATH determines the search path for the shell command speci®ed in the editor commands, shell, read, and write.

SHELL is variable that shall be interpreted as the preferred command-line interpreter for use in !, shell, read, and other commands with an operand of the form !string. For the shell command, the program shall be invoked with the single argument -i. For all others, it shall be invoked with the two arguments -cand string. If no SHELL environment variable is set, or it is set to a null string, the sh utility shall be used.

TERM is a variable that shall be interpreted as the name of the terminal type. If this variable is unset or null, an unspeci®ed default terminal type shall be used.

EXINIT is a variable that shall be interpreted to contain a list of ex commands that are executed on editor startup, before reading the ®rst ®le. The list can contain multiple commands by separating then using a vertical line () character.

HOME shall be interpreted as a pathname of a directory that shall be searched for an editor startup ®le name .exrc.

Section 1256

− 16 −

HP-UX Release 11i: December 2000