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