Include oia.h
[unix-history] / usr / src / usr.bin / ex / ex.1
CommitLineData
3437507f
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.\"
00f19af8 5.\" @(#)ex.1 6.4 (Berkeley) %G%
3437507f 6.\"
08fbacb7 7.TH EX 1 ""
3437507f
KM
8.UC 4
9.SH NAME
10ex, edit \- text editor
11.SH SYNOPSIS
12.B ex
13[
14.B \-
15] [
16.B \-v
17] [
18.B \-t
19tag
20] [
21.B \-r
22] [
00f19af8 23\fB+\fIcommand\fR
3437507f
KM
24] [
25.B \-l
26]
27name ...
28.br
29.B edit
30[
31ex options
32]
33.SH DESCRIPTION
34.I Ex
35is the root of a family of editors:
36.I edit,
37.I ex
38and
39.I vi.
40.I Ex
41is a superset of
42.I ed,
43with the most notable extension being a display editing facility.
44Display based editing is the focus of
45.I vi.
46.PP
47If you have not used
48.I ed,
49or are a casual user, you will find that the editor
50.I edit
51is convenient for you.
52It avoids some of the complexities of
53.I ex
54used mostly by systems programmers and persons very familiar with
55.I ed.
56.PP
57If you have a \s-2CRT\s0 terminal, you may wish to use a display
58based editor; in this case
59see
60.IR vi (1),
61which is a command which focuses on the display editing portion of
62.I ex.
63.SH DOCUMENTATION
64The document
65.I "Edit: A tutorial"
4f2aef6d 66(USD:14) provides a comprehensive introduction to
3437507f
KM
67.I edit
68assuming no previous knowledge of computers or the \s-2UNIX\s0 system.
69.PP
70The
0d4cb8a3 71.I "Ex Reference Manual \- Version 3.7"
4f2aef6d 72(USD:16)
3437507f
KM
73is a comprehensive and complete manual for the command mode features
74of
75.I ex,
76but you cannot learn to use the editor by reading it.
77For an introduction to
78more advanced forms of editing using the command mode of
79.I ex
80see the editing documents written by Brian Kernighan for the editor
81.I ed;
82the material in the introductory and advanced documents works also with
83.I ex.
84.PP
85.I "An Introduction to Display Editing with Vi"
4f2aef6d 86(USD:15)
3437507f
KM
87introduces the display editor
88.I vi
89and provides reference material on
90.I vi.
3437507f
KM
91In addition, the
92.I "Vi Quick Reference"
93card summarizes the commands
94of
95.I vi
96in a useful, functional way, and is useful with the
97.I Introduction.
98.SH FILES
99.DT
100/usr/lib/ex?.?strings error messages
101.br
102/usr/lib/ex?.?recover recover command
103.br
104/usr/lib/ex?.?preserve preserve command
105.br
106/etc/termcap describes capabilities of terminals
107.br
108~/.exrc editor startup file
109.br
110/tmp/Ex\fInnnnn\fR editor temporary
111.br
112/tmp/Rx\fInnnnn\fR named buffer temporary
113.br
114/usr/preserve preservation directory
115.SH SEE ALSO
a015fe5e 116awk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5), environ(7)
3437507f
KM
117.SH AUTHOR
118Originally written by William Joy
119.br
120Mark Horton has maintained the editor since version 2.7, adding macros,
121support for many unusual terminals,
122and other features such as word abbreviation mode.
123.SH BUGS
124The
125.I undo
126command causes all marks to be lost on lines changed and then restored
127if the marked lines were changed.
128.PP
129.I Undo
130never clears the buffer modified condition.
131.PP
132The
133.I z
134command prints a number of logical rather than physical lines.
135More than a screen full of output may result if long lines are present.
136.PP
137File input/output errors don't print a name if the command line \fB`\-'\fR
138option is used.
139.PP
140There is no easy way to do a single scan ignoring case.
141.PP
142The editor does not warn if text is placed in named buffers and not used
143before exiting the editor.
144.PP
145Null characters are discarded in input files, and cannot appear in resultant
146files.