MPE/iX Shell and Utilities Reference Manual, Vol 2
vi(1) MPE/iX Shell and Utilities vi(1)
p is similar to P except that text is pasted after the cursor instead of before it.
Q switches to Ex mode. You leave Vi mode and the Ex prompt is shown on the bottom
line of the screen.
U undoes all changes to current line. As soon as you move off a line or invoke an Ex
command on the line, the original contents of the line are forgotten and U is not suc-
cessful.
u undoes last change. If repeated, you undo the undo (that is, go back to what the text
was before the undo). Some operations are treated as single changes; for example,
everything done by a global G is undone with undo.
ZZ writes the file out, if changed, then exits. Equivalent to the Ex command xit.
. repeats the last command. Any command which changes the contents of the file may
be repeated by this command. If you do not specify count with the . command, vi
uses the count that was specified for the command being repeated.
˜ toggles the case of the character under the cursor and move the cursor right by one.
This command may be preceded by count to change the case of count characters.
& repeats the previous Ex substitute command using the current line as the target.
Flags set by the previous command are ignored. Equivalent to the Ex command &.
: invokes an Ex command. The editor places the cursor on the bottom line of the
screen and displays a colon (:) to prompt for input. You may then type an Ex com-
mand; when you press
ESC or ENTER
, the line you have entered is passed to Ex and
run there.
@ invokes a macro. When the next character is a letter from a through z, vi treats it as
the name of a buffer. The contents of that buffer are treated as input typed to vi.
The text of a macro may contain an @ calling another macro. A macro may call itself,
provided it is invoked at the end of the macro (tail recursion). Such a macro runs for-
ever or until an error occurs or the
INTERRUPT key is pressed. A macro that invokes it-
self at the beginning (head recursion) loops until it runs out of memory. A vi error
terminates all currently executing macros. All changes made during a macro call are
treated as a unit and may be undone with a single u command.
CTRL-G
displays the current path name, current line number, total number of lines in the file,
and the percentage of the way through the file. This is equivalent to invoking the Ex
command file.
CTRL-L redraws the screen assuming another process has written on it. This should normally
never happen unless a filter ! command writes to the screen rather than the standard
output.
Commands and Utilities 1-657