.\" The Regents of the University of California. All rights reserved.
.\" %sccs.include.redist.roff%
This section describes the commands available in the command mode
is a sequence of letters, digits and underscores, delimited by other
characters or the beginning or ending of a line.
Many vi commands operate on this kind of
which are delimited by white space characters and the beginning and
keeps track of the currently
Each command below, that can change the current cursor position,
specifies if the cursor is set to a specific location in the line,
The latter means that the cursor is moved to the cursor position that
is vertically as close as possible to the last cursor position.
If the current line is shorter than than the cursor position
would select, the cursor is positioned on the last character in the line.
In all cases, if the line is empty, the cursor is positioned on the first
In each entry below, the tag line is a usage statement for the command
A leading word count, in square brackets, indicates that the command
causing it to repeat the command's effect
.Bl -tag -width "XXXX" -compact
upon which the cursor is positioned.
command may be used as a motion argument.
The cursor is positioned at the beginning of the
The cursor is positioned at the first non-blank character of the new line.
Interrupt an operation (e.g. text input, read, write, search).
is used to interrupt inserting text into the file, it is as if
the <escape> character was used; all text input up to the
interruption is resolved into the file.
If it is used to interrupt entering an
command, the command is aborted, the cursor returns to its previous
Scroll down the number of lines specified by the
The cursor is positioned at the first non-blank character of the new line.
scrolls down that many lines, and the value of the
command differs from the other scrolling commands (with the exception of
in that it moves the screen, without moving the cursor, i.e. the cursor
If the line the cursor is on scrolls off the bottom of the screen,
the cursor is positioned at the most attractive column.
The cursor is positioned at the first non-blank character of the new line.
Display the file name and status.
.It Li "^H [count, motion]"
The beginning of the line is a sink for the movement, however,
it is an error to move left from the first character of the line.
.It Li "^J [count, motion]"
The cursor is positioned at the most attractive column.
The cursor is positioned at the first non-blank character of the new line.
.It Li "^P [count, motion]"
The cursor is positioned at the most attractive column.
Scroll up the number of lines specified by the
The cursor is positioned at the first non-blank character of the new line.
scrolls up that many lines, and the value of the
command differs from the other scrolling commands (with the exception of
in that it moves the screen, without moving the cursor, i.e. the cursor
If the line the cursor is on scrolls off the top of the screen,
the cursor is positioned at the most attractive column.
This is the <escape> character as well as
commands and cancel partial commands.
command is being entered, the <escape> character causes the command
If a partial command has been entered, e.g.
.Dq Li "[0-9]*[!<>cdy]" ,
the command is cancelled.
Otherwise, it is considered and error.
.It Li "' ' [count, motion] "
The end of the line is a sink for the movement, however,
it is an error to move right from the last character of the line.
It is not, however, an error to use the the <space> or
commands as motion commands at the end of the line.
This section describes the commands available in the text input mode
.Bl -tag -width "XXXX" -compact
Move the cursor forwards the number of columns specified by the option
First, <tab> characters are inserted, and then <spaces> if necessary.
command to be used unless the cursor was at the first column of a new
line or it was preceded only by
permits it to be used at any time during insert mode.
This is the <escape> character as well as