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