BSD 3 development
[unix-history] / usr / doc / ex / ex1.1-2.0
CommitLineData
c9d80af9
BJ
1.if t .ds dg \(dg
2.if n .ds dg +
3.SH
4.ce
5\s+4Ex differences \- version 1.1 to 2.0\s0
6.sp .4i
7.PP
8This sheet summarizes the differences between the old version 1.1 of
9.I ex
10and the new version 2.0.
11The new
12.I ex
13is available as the standard
14.I ex
15on the \s-2VAX\s0 on the 5th floor of Evans,
16and as a new and experimental version
17in /usr/new on the Cory 11/70.
18It will soon be available in /usr/new on the Computer Center and Ingres
19Machines.
20Send problems over the Berkeley network to ``vax:bill''.
21.SH
22\s+2Changes to existing features\s0
23.SH
24Options.
25.PP
26The options
27.I editany,
28.I edited,
29.I fork,
30.I hush,
31.I printall
32and
33.I sticky
34have been deleted because of lack of use.
35The
36.I notify
37option has been renamed
38.I report.
39.PP
40The
41.I home
42option will soon be superseded by the environment feature of version 7
43\s-2UNIX\s0 and has been deleted.
44Similarly the
45.I mode
46option is superseded by the
47.I umask
48of version 7 and has also been deleted.
49.PP
50The
51.I visualmessage
52option has been deleted; use ``mesg n'' at the system command level
53to inhibit interconsole messages.
54.PP
55The
56.I iul
57option is replaced by a more general mechanism which allows portions of the
58buffer to be processed through specified commands; you can get
59.I iul
60processing on lines 1 to 100 of a file by doing ``1,100!iul''.
61This replaces the lines 1 to 100 by the output of an
62.I iul
63command, giving the command these lines as input.
64.SH
65Invocation
66.PP
67The options
68.B \-o,
69.B \-n
70and
71.B \-p
72have been deleted.
73.SH
74Filename formation
75.PP
76The alternate filename is now represented as `#' rather than `\`', since
77`\`' is a shell metacharacter. The editor now uses a shell to expand
78filenames containing shell metacharacters. If you use
79.I csh,
80then you can use all the shell metasyntax in forming new filenames,
81including home directory references with `~' and variables you define in
82.I \&.cshrc
83using `$'.
84.SH
85Character representation
86.PP
87Control characters are now represented as `^\fIx\fR'; thus a control X is
88printed as `^X'; the delete character is represented `^?'.
89.SH
90Command changes
91.PP
92There have been major changes to open/visual (incompatible ones are described
93below).
94.PP
95It is no longer possible to
96discard changes by repeating the
97.I quit
98command twice.
99You must use the variant form \fBquit!\fR to get out of the editor discarding
100changes.
101Similarly the variant forms \fBe!\fR and \fBnext!\fR must be used to edit
102a new file or the next file without saving changes you have made.\*(dg
103.FS
104\*(dg
105Less useful are \fBrewind!\fR and \fBrecover!\fR.
106.FE
107.PP
108A new form of the `!' shell escape replaces the
109.I expand
110and
111.I tabulate
112commands.
113Thus the command ``1,10expand'' of the old version is replaced by
114``1,10!expand'' in the new.
115Note also that the command abbreviation
116.B ta
117no longer refers to the
118.I tabulate
119command, which has been deleted, but rather refers to the new
120.I tag
121command.
122.PP
123The format of the
124.I args
125command has been changed; the files are no longer numbered, rather
126the entire argument list is always printed with the current file name
127enclosed by `[' and `]'.
128.PP
129The format of the
130.I file
131command output has been changed;
132the editor says `[Not edited]' in the rare case that this is true rather
133than saying `[Edited]'. The command also gives the percentage of the way
134into the buffer that the current line is.
135.PP
136The format of the
137.I set
138command has been improved;
139``set all'' now prints in a three column format.
140The commands ``set %'', ``set !'' and ``set \`'' have been deleted.
141The command ``set'' now prints in a one line format rather than down
142the screen.
143.PP
144The commands
145.I echo,
146.I expand,
147.I help,
148.I reset,
149.I sync,
150.I tabulate
151and
152.I xpand
153have been deleted.
154.SH
155.SH
156\s+2Changes to open and visual\s0
157.PP
158A large number of changes have been made to open and visual;
159we summarize only the most noticeable ones here. See the attached reference
160card for more information, and (even if you know
161how to use visual already) you should look at
162.I "An Introduction to Text Editing with Vi".
163We do not discuss any of the new commands in visual here.\(dg
164.FS
165\(dg It is now possible to edit with the focus of the editing
166being
167.I visual
168using a command
169.I vi
170rather than
171.I ex
172on the command line, and
173using a new \fB:\fR command from within visual to run command mode commands.
174.FE
175.PP
176The delete line command is now \fBdd\fR rather than \fB\e\e\fR (\fB\e\e\fR
177no longer works!.)
178In fact, \fBd\fR and other operators can now operate on lines; thus
179\fBdL\fR deletes to the last line on the screen.
180The shift commands \fB<\fR and \fB>\fR are now operators, thus
181\fB<<\fR and \fB>>\fR now have the effect that \fB<\fR and \fB>\fR used
182to have.
183.PP
184The command \fBv\fR has been deleted; only its synonym \fBz\fR remains.
185The \fBK\fR operation has been moved to \fBm\fR; \fBK\fR has no meaning
186in the new version.
187The \fB^S\fR operation has been deleted, but \fB^G\fR does a sync, and
188also prints some information.
189The \fB^W\fR operation has been deleted (use \fBB\fR).
190The \fB#\fR, \fB@\fR and \fB^X\fR operations have been deleted.
191To delete to the beginning of the line use \fBd0\fR; the commands and
192\fBx\fR and \fBX\fR are similar to \fB#\fR.
193.PP
194During inputs, \fB^W\fR backs up like \fBb\fR rather than \fBB\fR.
195.PP
196Terminal support has been vastly improved; the editor will now drive most
197any display terminal, using all terminal features such as cursor addressing,
198clear to end of line, insert and delete line and insert and delete character.
199To help performance on slow terminals some options are now set based on the
200intelligence and speed of the terminal; in particular, the default window
201size is 1/2 a full screen at 300 baud, or 2/3 of a full screen at 1200 baud.