BSD 4_2 development
[unix-history] / usr / man / man1 / vi.1
CommitLineData
d8649de5
C
1.TH VI 1 "2 December 1979"
2.UC
3.SH NAME
4vi \- screen oriented (visual) display editor based on ex
5.SH SYNOPSIS
6.B vi
7[
8.B \-t
9tag
10] [
11.B \-r
12] [
13\fB+\fR\fIcommand\fR
14] [
15.B \-l
16] [
17\fB\-w\fIn\fR
18]
19name ...
20.SH DESCRIPTION
21.I Vi
22(visual) is a display oriented text editor based on
23.IR ex (1).
24.I Ex
25and
26.I vi
27run the same code; it is possible to get to
28the command mode of
29.I ex
30from within
31.I vi
32and vice-versa.
33.PP
34The
35.I "Vi Quick Reference"
36card and the
37.I "Introduction to Display Editing with Vi"
38provide full details on using
39.I vi.
40.SH FILES
41See
42.IR ex (1).
43.SH SEE ALSO
44ex (1), edit (1), ``Vi Quick Reference'' card,
45``An Introduction to Display Editing with Vi''.
46.SH AUTHOR
47William Joy
48.br
49Mark Horton added macros to \fIvisual\fR mode and is maintaining version 3
50.SH BUGS
51Software tabs using \fB^T\fR work only immediately after the
52.I autoindent.
53.PP
54Left and right shifts on intelligent terminals don't make use of
55insert and delete character operations in the terminal.
56.PP
57The
58.I wrapmargin
59option can be fooled since it looks at output columns when blanks are typed.
60If a long word passes through the margin and onto the next line without a
61break, then the line won't be broken.
62.PP
63Insert/delete within a line can be slow if tabs are present on intelligent
64terminals, since the terminals need help in doing this correctly.
65.PP
66Saving text on deletes in the named buffers is somewhat inefficient.
67.PP
68The
69.I source
70command does not work when executed as \fB:source\fR;
71there is no way to use the \fB:append\fR, \fB:change\fR,
72and \fB:insert\fR commands, since it is not possible to give
73more than one line of input to a \fB:\fR escape. To use these
74on a \fB:global\fR you must \fBQ\fR to \fIex\fR command mode,
75execute them, and then reenter the screen editor with
76.I vi
77or
78.I open.