MPE/iX Shell and Utilities Reference Manual, Vol 2

vi(1) MPE/iX Shell and Utilities vi(1)
[[ moves back to the beginning of a section. A section begins on lines starting with a
formfeed (CTRL-L); starting with an open brace {; a text formatter macro in the
sections variable; or begin or end of file.
]] moves to the beginning of the next section. See [[ for the definition of a section.
% finds the balancing character to that under the cursor. The character should be one of
[{(< or ]})>.
; repeats the previous F, f, T,ort command.
, repeats the previous F, f, T,ort command in the opposite direction.
/regexp searches forward in the file for a line matching the regular expression regexp and po-
sitions the cursor at the first character of the matching string. When used with an op-
erator to define a text range, the range begins with the character at the current cursor
position and ends with the first character of the matching string. You can specify
whole lines by following regexp with /+n or /-n where n is the offset from the
matched line.
?regexp
is similar to /, but searches backwards in the file.
CTRL-] uses the word after the cursor as a tag. See tag under Ex Commands.
Object Manipulators
An object manipulator command works on a block of text. The command character is fol-
lowed immediately by any kind of movement command. The object that is manipulated by
the object manipulator command is the text from the current position pointer to wherever the
movement command would leave the cursor.
For example, in dL, d is the object manipulator command to delete an object. It is followed
by the movement command L which means move to the bottom line of the screen. The object
manipulated by the command thus extends from the current line to the bottom line on the
screen; these lines are deleted.
Normally an object extends up to, but not including, the position of the cursor after the move
command; however, some movements work in a line mode; for example, L puts the cursor on
the first non-blank character of the last line on the screen. If it is used in an object manipula-
tion command, it includes the entire starting line and the entire ending line. Some other ob-
jects include the cursor position; for example, d$ deletes up to and including the last character
on a line; by itself the $ would have placed the cursor on the final character. Repeating the
command letter (or symbol) implies working on a line basis; thus 5dd deletes five lines.
Commands and Utilities 1-653