Print this page
10067 Miscellaneous man page typos
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Volker A. Brandt <vab@bb-c.de>
*** 110,120 ****
[\fB-S\fR] [\fB-t\fR \fItag\fR] [\fB-v\fR] [\fB-V\fR] [\fB-x\fR] [\fB-w\fR\fIn\fR] [\fB-C\fR]
[\fB+\fR\fIcommand\fR | \fB-c\fR \fIcommand\fR] \fIfilename\fR...
.fi
.SH DESCRIPTION
- .sp
.LP
The \fBvi\fR (visual) utility is a display-oriented text editor based on an
underlying line editor \fBex\fR. It is possible to use the command mode of
\fBex\fR from within \fBvi\fR and to use the command mode of \fBvi\fR from
within \fBex\fR. The visual commands are described on this manual page; how to
--- 110,119 ----
*** 135,149 ****
The \fBvedit\fR invocation is intended for beginners. It is the same as
\fBvi\fR except that the \fBreport\fR flag is set to \fB1\fR, the
\fBshowmode\fR and \fBnovice\fR flags are set, and \fBmagic\fR is turned off.
These defaults make it easier to learn how to use \fBvi\fR.
.SH OPTIONS
- .sp
.LP
! The following options are supporrted:
.SS "Invocation Options"
- .sp
.LP
The following invocation options are interpreted by \fBvi\fR (previously
documented options are discussed under NOTES):
.sp
.ne 2
--- 134,146 ----
The \fBvedit\fR invocation is intended for beginners. It is the same as
\fBvi\fR except that the \fBreport\fR flag is set to \fB1\fR, the
\fBshowmode\fR and \fBnovice\fR flags are set, and \fBmagic\fR is turned off.
These defaults make it easier to learn how to use \fBvi\fR.
.SH OPTIONS
.LP
! The following options are supported:
.SS "Invocation Options"
.LP
The following invocation options are interpreted by \fBvi\fR (previously
documented options are discussed under NOTES):
.sp
.ne 2
*** 287,303 ****
Begins editing by executing the specified editor \fIcommand\fR (usually a
search or positioning command).
.RE
.SS "/usr/xpg4/bin/vi and /usr/xpg6/bin/vi"
- .sp
.LP
If both the \fB-t\fR \fItag\fR and the \fB-c\fR \fIcommand\fR options are
! given, the \fB-t\fR \fItag\fR optionis processed first. That is, the file
containing \fItag\fR is selected by \fB-t\fR and then the command is executed.
.SH OPERANDS
- .sp
.LP
The following operands are supported:
.sp
.ne 2
.na
--- 284,298 ----
Begins editing by executing the specified editor \fIcommand\fR (usually a
search or positioning command).
.RE
.SS "/usr/xpg4/bin/vi and /usr/xpg6/bin/vi"
.LP
If both the \fB-t\fR \fItag\fR and the \fB-c\fR \fIcommand\fR options are
! given, the \fB-t\fR \fItag\fR option is processed first. That is, the file
containing \fItag\fR is selected by \fB-t\fR and then the command is executed.
.SH OPERANDS
.LP
The following operands are supported:
.sp
.ne 2
.na
*** 306,320 ****
.RS 12n
A file to be edited.
.RE
.SH COMMAND SUMMARY
- .sp
.LP
The \fBvi\fR command modes are summarized in this section.
.SS "vi Modes"
- .sp
.ne 2
.na
\fBCommand\fR
.ad
.RS 13n
--- 301,313 ----
*** 350,360 ****
Reading input for \fB: / ?\fR or \fB!\fR. Terminate by typing a carriage
return. An interrupt cancels termination.
.RE
.SS "Sample Commands"
- .sp
.LP
In the descriptions, \fICR\fR stands for carriage return and \fIESC\fR stands
for the escape key.
.sp
.ne 2
--- 343,352 ----
*** 498,508 ****
.RS 14n
any \fBex\fR or \fBed\fR command
.RE
.SS "Counts Before vi Commands"
- .sp
.LP
Numbers can be typed as a prefix to some commands. They are interpreted in one
of these ways:
.sp
.ne 2
--- 490,499 ----
*** 530,540 ****
.RS 22n
most of the rest
.RE
.SS "Interrupting, Canceling"
- .sp
.ne 2
.na
\fB\fIESC\fR\fR
.ad
.RS 7n
--- 521,530 ----
*** 549,559 ****
.RS 7n
(delete or rubout) interrupts
.RE
.SS "File Manipulation"
- .sp
.ne 2
.na
\fBZZ\fR
.ad
.RS 15n
--- 539,548 ----
*** 726,736 ****
.LP
In general, any \fBex\fR or \fBed\fR command (such as \fIsubstitute\fR or
\fIglobal\fR) can be typed, preceded by a colon and followed by a carriage
return.
.SS "Positioning Within a File"
- .sp
.ne 2
.na
\fBF\fR
.ad
.RS 14n
--- 715,724 ----
*** 890,900 ****
.RS 14n
find matching \fB( )\fR or \fB{ }\fR
.RE
.SS "Adjusting the Screen"
- .sp
.ne 2
.na
\fB^L\fR
.ad
.RS 16n
--- 878,887 ----
*** 972,982 ****
.RS 16n
scroll window up one line
.RE
.SS "Marking and Returning"
- .sp
.ne 2
.na
\fB\(ga\(ga\fR
.ad
.RS 12n
--- 959,968 ----
*** 1018,1028 ****
.RS 12n
move cursor to first non-white space in line marked by \fIx\fR
.RE
.SS "Line Positioning"
- .sp
.ne 2
.na
\fBH\fR
.ad
.RS 14n
--- 1004,1013 ----
*** 1099,1109 ****
.RS 14n
previous line, same column
.RE
.SS "Character Positioning"
- .sp
.ne 2
.na
\fB^\fR
.ad
.RS 13n
--- 1084,1093 ----
*** 1235,1245 ****
.RS 13n
find matching \fB( )\fR or \fB{ }\fR
.RE
.SS "Words, Sentences, Paragraphs"
- .sp
.ne 2
.na
\fBw\fR
.ad
.RS 5n
--- 1219,1228 ----
*** 1326,1336 ****
.RS 5n
end of a blank-delimited word
.RE
.SS "Corrections During Insert"
- .sp
.ne 2
.na
\fB^H\fR
.ad
.RS 16n
--- 1309,1318 ----
*** 1427,1437 ****
.RS 16n
quote non-printable character
.RE
.SS "Insert and Replace"
- .sp
.ne 2
.na
\fBa\fR
.ad
.RS 12n
--- 1409,1418 ----
*** 1500,1510 ****
.RS 12n
replace characters
.RE
.SS "Operators"
- .sp
.LP
Operators are followed by a cursor motion and affect all text that would have
been moved over. For example, since \fBw\fR moves over a word, \fBdw\fR deletes
the word that would be moved over. Double the operator, for example \fBdd\fR,
to affect whole lines.
--- 1481,1490 ----
*** 1561,1571 ****
.RS 5n
filter through command
.RE
.SS "Miscellaneous Operations"
- .sp
.ne 2
.na
\fBC\fR
.ad
.RS 5n
--- 1541,1550 ----
*** 1634,1644 ****
.RS 5n
yank lines (\fByy\fR)
.RE
.SS "Yank and Put"
- .sp
.LP
Put inserts the text most recently deleted or yanked; however, if a buffer is
named (using the \fBASCII\fR lower-case letters \fBa\fR - \fBz\fR), the text in
that buffer is put instead.
.sp
--- 1613,1622 ----
*** 1703,1713 ****
.RS 7n
delete into buffer \fIx\fR
.RE
.SS "Undo, Redo, Retrieve"
- .sp
.ne 2
.na
\fBu\fR
.ad
.RS 7n
--- 1681,1690 ----
*** 1740,1756 ****
.RS 7n
retrieve \fId\fR'th last delete
.RE
.SH USAGE
- .sp
.LP
See \fBlargefile\fR(5) for the description of the behavior of \fBvi\fR and
\fBview\fR when encountering files greater than or equal to 2 Gbyte ( 2^31
bytes).
.SH ENVIRONMENT VARIABLES
- .sp
.LP
See \fBenviron\fR(5) for descriptions of the following environment variables
that affect the execution of \fBvi\fR: \fBLANG\fR, \fBLC_ALL\fR,
\fBLC_COLLATE\fR, \fBLC_CTYPE\fR, \fBLC_TIME\fR, \fBLC_MESSAGES\fR,
\fBNLSPATH\fR, \fBPATH\fR, \fBSHELL\fR, and \fBTERM\fR.
--- 1717,1731 ----
*** 1783,1793 ****
Override the system-selected vertical screen size, used as the number of lines
in a screenful and the vertical screen size in visual mode.
.RE
.SH FILES
- .sp
.ne 2
.na
\fB\fB/var/tmp\fR\fR
.ad
.sp .6
--- 1758,1767 ----
*** 1815,1831 ****
.RS 4n
subset of compiled terminal description database
.RE
.SH ATTRIBUTES
- .sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.SS "/usr/bin/vi, /usr/bin/view, /usr/bin/vedit"
- .sp
-
- .sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
--- 1789,1801 ----
*** 1832,1844 ****
_
CSI Not enabled
.TE
.SS "/usr/xpg4/bin/vi, /usr/xpg4/bin/view, /usr/xpg4/bin/vedit"
- .sp
-
- .sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
--- 1802,1811 ----
*** 1847,1859 ****
_
Interface Stability Standard
.TE
.SS "/usr/xpg6/bin/vi, /usr/xpg6/bin/view, /usr/xpg6/bin/vedit"
- .sp
-
- .sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
--- 1814,1823 ----
*** 1862,1886 ****
_
Interface Stability Standard
.TE
.SH SEE ALSO
- .sp
.LP
\fBIntro\fR(1), \fBctags\fR(1), \fBed\fR(1), \fBedit\fR(1), \fBex\fR(1),
\fBattributes\fR(5), \fBenviron\fR(5), \fBlargefile\fR(5), \fBstandards\fR(5)
.sp
.LP
\fISolaris Advanced User\&'s Guide\fR
.SH AUTHOR
- .sp
.LP
\fBvi\fR and \fBex\fR were developed by The University of California, Berkeley
California, Computer Science Division, Department of Electrical Engineering and
Computer Science.
.SH NOTES
- .sp
.LP
Two options, although they continue to be supported, have been replaced in the
documentation by options that follow the Command Syntax Standard (see
\fBIntro\fR(1)). An \fB-r\fR option that is not followed with an
option-argument has been replaced by \fB-L\fR and \fB+\fR\fBcommand\fR has been
--- 1826,1847 ----