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