summaryrefslogtreecommitdiff
path: root/doc/index.doc
blob: 9dafd99888d3ed1967c81109450fe0feb1248fbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
                   @@@@@@@  @       @     @   @@@    @@@@@ 
                   @        @       @     @    @    @     @
                   @        @       @     @    @    @      
                   @@@@@    @       @     @    @     @@@@@ 
                   @        @        @   @     @          @
                   @        @         @ @      @    @     @
                   @@@@@@@  @@@@@@@    @      @@@    @@@@@ 

                             - a clone of vi/ex -
                                  version 1.4






















Author: Steve Kirkendall
        14407 SW Teal Blvd., Apt C
        Beaverton, OR 97005

E-Mail: kirkenda@cs.pdx.edu

Phone:  (503) 642-9905















                          ---=: C O N T E N T S :=---



    1.  INTRODUCTION ................................................... 1-1
      1.1  Compiling ................................................... 1-1
      1.2  Overview of Elvis ........................................... 1-1

    2.  VISUAL MODE COMMANDS ........................................... 2-1
      2.1  Input Mode .................................................. 2-4
      2.2  Arrow keys in Input Mode .................................... 2-4
      2.3  Digraphs .................................................... 2-5
      2.4  Abbreviations ............................................... 2-5
      2.5  Auto-Indent ................................................. 2-5

    3.  COLON MODE COMMANDS ............................................ 3-1
      3.1  Line Specifiers ............................................. 3-2
      3.2  Text Entry Commands ......................................... 3-3
      3.3  Cut & Paste Commands ........................................ 3-3
      3.4  Display Text Commands ....................................... 3-3
      3.5  Global Operations Commands .................................. 3-4
      3.6  Line Editing Commands ....................................... 3-4
      3.7  Undo Command ................................................ 3-5
      3.8  Configuration & Status Commands ............................. 3-5
      3.9  Multiple File Commands ...................................... 3-6
      3.10  Switching Files ............................................ 3-7
      3.11  Working with a Compiler .................................... 3-7
      3.12  Exit Commands .............................................. 3-7
      3.13  File I/O Commands .......................................... 3-8
      3.14  Directory Commands ......................................... 3-8
      3.15  Debugging Commands ......................................... 3-8

    4.  REGULAR EXPRESSIONS ............................................ 4-1
      4.1  Syntax ...................................................... 4-1
      4.2  Options ..................................................... 4-1
      4.3  Substitutions ............................................... 4-1
      4.4  Examples .................................................... 4-2

    5.  OPTIONS ........................................................ 5-1
      5.1  AutoIndent .................................................. 5-2
      5.2  AutoPrint ................................................... 5-2
      5.3  AutoWrite ................................................... 5-2
      5.4  CC .......................................................... 5-2
      5.5  CharAttr .................................................... 5-2
      5.6  COlumns ..................................................... 5-3
      5.7  DIGraph ..................................................... 5-3
      5.8  DIRectory ................................................... 5-3
      5.9  EDcompatible ................................................ 5-3
      5.10  ErrorBells ................................................. 5-3
      5.11  ExRefresh .................................................. 5-3
      5.12  FlipCase ................................................... 5-4
      5.13  HideFormat ................................................. 5-4
      5.14  IgnoreCase ................................................. 5-4
      5.15  InputMode .................................................. 5-4
      5.16  KeyTime .................................................... 5-4
      5.17  KeywordPrg ................................................. 5-5
      5.18  LiNes ...................................................... 5-5
      5.19  LIst ....................................................... 5-5








      5.20  MAgic ...................................................... 5-6
      5.21  MaKe ....................................................... 5-6
      5.22  ModeLine ................................................... 5-6
      5.23  PAragraphs ................................................. 5-6
      5.24  ReadOnly ................................................... 5-6
      5.25  REport ..................................................... 5-7
      5.26  SCroll ..................................................... 5-7
      5.27  SEctions ................................................... 5-7
      5.28  SHell ...................................................... 5-7
      5.29  ShiftWidth ................................................. 5-7
      5.30  ShowMatch .................................................. 5-8
      5.31  ShowMoDe ................................................... 5-8
      5.32  SideScroll ................................................. 5-8
      5.33  SYnc ....................................................... 5-8
      5.34  TabStop .................................................... 5-8
      5.35  TErm ....................................................... 5-9
      5.36  VBell ...................................................... 5-9
      5.37  WArn ....................................................... 5-9
      5.38  WrapMargin ................................................. 5-9
      5.39  WrapScan ................................................... 5-9

    6.  CUT BUFFERS .................................................... 6-1
      6.1  Filling ..................................................... 6-1
      6.2  Pasting from a Cut Buffer ................................... 6-2
      6.3  Macros ...................................................... 6-2
      6.4  The Effect of Switching Files ............................... 6-3

    7.  DIFFERENCES BETWEEN ELVIS & BSD VI/EX .......................... 7-1
      7.1  Extensions .................................................. 7-1
      7.2  Omissions ................................................... 7-3

    8.  INTERNAL ....................................................... 8-1
      8.1  The temporary file .......................................... 8-1
      8.2  Implementation of Editing ................................... 8-1
      8.3  Marks and the Cursor ........................................ 8-2
      8.4  Colon Command Interpretation ................................ 8-2
      8.5  Screen Control .............................................. 8-2
      8.6  Portability ................................................. 8-3

    9.  CFLAGS ......................................................... 9-1

    10.  TERMCAP ....................................................... 10-1
      10.1  Required numeric fields .................................... 10-1
      10.2  Required string fields ..................................... 10-1
      10.3  Boolean fields ............................................. 10-1
      10.4  Optional string fields ..................................... 10-1
      10.5  Optional strings received from the keyboard ................ 10-1
      10.6  Optional fields that describe character attributes ......... 10-2
      10.7  Optional fields that affect the cursor's shape ............. 10-2
      10.8  An example ................................................. 10-2

    11.  ENVIRONMENT VARIABLES ......................................... 11-1
      11.1  TERM, TERMCAP .............................................. 11-1
      11.2  TMP, TEMP .................................................. 11-1
      11.3  EXINIT ..................................................... 11-1
      11.4  SHELL, COMSPEC ............................................. 11-1
      11.5  HOME ....................................................... 11-1









    12.  VERSIONS ...................................................... 12-1
      12.1  BSD UNIX ................................................... 12-1
      12.2  System-V UNIX .............................................. 12-1
      12.3  SCO Xenix .................................................. 12-2
      12.4  Minix ...................................................... 12-2
      12.5  Coherent ................................................... 12-2
      12.6  MS-DOS ..................................................... 12-3
      12.7  Atari TOS .................................................. 12-4
      12.8  OS9/68k .................................................... 12-4