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