ex(1)

ex(1)

terminated by the visual-mode Q command in order to proceed to the next marked line.)

The global command itself and the undo command are not allowed in command. The editor options autoprint, autoindent, and report are inhibited.

Appending a ! to the global command (that is, g! ...) or using the alternate name v causes command to be run on the lines within range that do not match the pattern.

insert

line i[nsert][!]

 

 

Enter input mode; the input text is placed before the speci®ed line. The last line input

 

becomes the current line, or the line before the target line, if no lines are input.

 

Appending ! to the command toggles the autoindent editor option setting for this

 

insert only.

 

 

join

range j[oin][!]

count ¯ags

 

 

Join together the text from the speci®ed lines into one line. White space is adjusted to

 

provide at least one blank character (two if a period appears at the end of a line, or none

 

if the ®rst character of a line is a closing parenthesis ())). Extra white space at the

 

beginning of a line is discarded.

 

 

Appending a ! to the command causes a simpler join with no white-space processing.

list

range l[ist] ount ¯ags

 

 

Print the speci®ed lines with tabs displayed as ÃI and the end of each line marked with

 

a trailing $. (The only useful ¯ag is # for line numbers.)

The last line printed becomes

 

the current line.

 

 

map

map key⏐#n action

 

 

map! key⏐#n action

 

 

The map and map! commands de®ne macros for use in visual mode. The ®rst argu-

 

ment, key, can be a single character or a multicharacter sequence. In the special

 

sequence, #n, n is a digit referring to the function key n. Special characters, whi-

 

tespace, and newline must be escaped with a ÃV to be entered in the arguments. The

 

key argument cannot contain a colon (:) as its ®rst character, nor can a multicharacter

 

sequence begin with an alphabetic character.

 

 

Macros de®ned by map are effective in visual command mode. Macros de®ned by map!

 

are effective in visual input mode. When key or the function key corresponding to #n is

 

entered, the editor interprets the operation as though action were typed.

 

The map or map! command without options displays the corresponding current list of

 

macros.

 

 

 

See also the editor options keyboardedit , keyboardedit!, timeout, and

 

timeoutlen in Editor Options below.

 

mark

line ma[rk] x

 

 

 

line k x

 

 

 

The speci®ed line is given the speci®ed mark x, which must be a single lowercase letter

 

(a-z). x must be preceded by a space or tab. The current line position is not affected. k

 

is an alternate name for mark.

 

move

range m[ove] line

 

 

Move the speci®ed lines (range) to follow the target line. The ®rst line moved becomes

 

the current line.

 

 

next

n[ext][!] [ ®le

...]

 

 

The next ®le from the command line argument list is edited. Appending a ! to the com-

 

mand overrides the warning about the work area having been modi®ed since the last

 

write (and discards any changes unless the autowrite editor option is set). The argu-

 

ment list can be replaced by specifying a new one on this command line.

number

range nu[mber] count ¯ags

 

 

range # count ¯ags

 

HP-UX Release 11i: December 2000

− 7 −

Section 1247

e