This repository has been archived by the owner on Dec 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathZ.TXT
executable file
·1874 lines (1099 loc) · 70.5 KB
/
Z.TXT
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.
User's Guide to the Z Editor
Mark Zbikowski
4 August 1986
Table of Contents
Starting Z..................................................... 1
Editing Functions.............................................. 4
Editing Switches and Flags.................................... 15
Keystroke Macros.............................................. 17
Index......................................................... 21
Revision History.............................................. 23
Z User's Guide Printed: November 5, 1986 11:52 AM
What is the Z editor?
Z is an editor, a program for creating and altering files.
The editor creates the file specified or copies an existing file from
disk into memory. Then when the file is "saved", the copy in Z
overwrites the copy on disk. The copy that was overlayed may be
retrieved with the UNDEL command (see UNDEL.HLP and also the "backup"
switch below).
Z makes your screen into a window on the file you are editing. The
window can move forwards or backwards to any point in the file. The
cursor identifies the focus of each edit operation.
The simplest editing operation is to move the cursor to the place you
want to change and start typing characters. What you type is stored in
the corresponding location in the copy of the file in Z. If you are in
INSERT mode, then the characters you type are inserted at the cursor
location instead of overwriting what is already there.
The editor interprets ASCII control characters and some ASCII character
sequences as commands. Each control character has an editing command
associated with it. You can change the association between editor
commands and control characters or character sequences with the <switch>
command.
Starting Z
Z uses several environment variables during its start-up. First, Z
looks for a file called TOOLS.INI by searching all the directories
contained in the USER environment variable. Contained in this TOOLS.INI
file are any customizations you wish to make to the editor function
assignments and editor switch settings. This file is optional. Starting
Z with the /D switch prevents TOOLS.INI from being read.
Z uses a scratch file during it execution. Normally, this file (Z.VM)
is created in the root directory on the default drive when Z is started.
If you want this file to be created elsewhere, for example on a ram-
drive, you may use the TMP environment variable to direct Z to place it
elsewhere. The TMP variable is also used to locate other temporary
files that Z uses.
The TOOLS.INI file is used to maintain configuration information. The
files are divided into sections by tags which are the name of a tool
surrounded by square brackets. In the case of the Z editor, the
following tags are used:
[z] following this tag should be general Z initialization
[z-x.y] following this tag should be Z initialization peculiar to a
particular version of MSDOS.
Z User's Guide Printed: November 5, 1986 11:52 AM
For a sample of user initialization, see the TOOLS.INI file.
The definitions in these files have one of several forms. Below are the
forms and a description of each.
NAME=xx yy zz...
This assignment directs Z to view the sequence of characters xx yy zz
... (in hexadecimal) as a single keystroke. This is often used for
naming function keys on your terminal.
NAME="chars"
Similar to the previous form except that the characters are named
explicitly. Quotes may be preceded with the "\" character to allow you
to enter them directly.
function:=function1 function2...
Defines a new function in terms of existing functions. This is called a
MACRO. When the new function is executed by Z, each function contained
in the definition is executed in order. Further information is
contained in the Keyboard Macros section below.
function:keys
Causes Z to execute the named function when the specified keys are read
from the keyboard. The keys are either a key name as defined above or a
sequence of characters to be used. Note that ^X in such a sequence
stands for CONTROL-X rather than up-arrow-X. You may have several keys
or key sequences assigned to a particular editing function, but you may
have ONLY one function on a key or sequence. A description of the
available editing functions is below.
switch:value
Set a particular configuration switch in Z to a value. See the
"switches and flags" section below for more information.
Anyway, when Z is through initializing, it attempts to read the file
specified on the command line. If Z was invoked without an argument, it
will attempt to read in the most recently edited file.
When the file has been read in, Z will display the file on the top 23
lines of the screen. The bottom two lines are used as follows:
The 24th line is used as a dialog line. Prompts and messages
appear on this line.
The 25th line is used as a status line. The information that
appears is (from left-to-right):
filename of file being edited
type of file (a guess based on the extension)
- 2 -
Z User's Guide Printed: November 5, 1986 11:52 AM
the word modified, if you have changed the file
the length in lines of the file
the position in (row, column) form of the upper-left corner of the
screen relative to the first byte of the file. (1,1) is the top of
the file
Now for the interesting part. Normally, when a key sequence is
recognized by Z as being attached to an editing function, Z will execute
that function.
Most functions have a 'default' action which is unchangeable. You may
change this action by preceding the editing function with an argument
and/or a mode- function modifier.
Arguments are introduced by the <arg> editor function. When you enter
the <arg> function, Z will reverse the video at the current cursor
position. You may then enter the argument as follows:
A sequence of cursor movements:
If the cursor ends up on top of the <arg> then the argument is
called a nullarg and represents either the remainder of the
line up to (and possibly including the line break) or
represents the next space-terminated word on the line
depending on the editing function.
If the cursor ends up on the same line but on a different column,
the argument is called a streamarg and represents all text
from the leftmost of the <arg> and cursor up to one character
position to the left of the rightmost of the <arg> and cursor.
If the cursor ends up in the same column as the <arg> then the
argument is called a linearg and represents the range of lines
beginning with the line that contains the <arg> up to and
including the line that contains the cursor.
If the cursor ends up on a different line and column from the
<arg>, the arg is known as a boxarg and may represent either a
rectangle of text whose diagonal is delimited by the <arg> and
cursor or the sequence of characters beginning at the
uppermost of <arg> and cursor through the bottommost of <arg>
and cursor including the line breaks. This distinction is
made by the editing function itself.
You may also type normal characters. You are prompted, on the dialog
line, to enter an argument. The types of textual arguments are:
ASCII text. This is called a textarg. The argument to the
function is merely the text you have typed.
A number. This is called a numarg and is the same as if you had
moved the cursor either upward or downward the specified
number of lines.
- 3 -
Z User's Guide Printed: November 5, 1986 11:52 AM
A bookmark. This is called a markarg. This is the same as if you
had moved the cursor to the bookmark position. To define a
bookmark, see the <mark> command.
The only mode-command modifier at the present is the <meta> command.
Its effect on each function is described in that function's description.
Editing Functions
Here is the current set of Z functions with a description of the allowed
arguments and a description of how they affect the command's operation.
Also, in each function description is the default assignment.
<arg> (^X) introduces an argument to modify a subsequent operation. To
cancel an <arg>, enter the <cancel> command. There are no modifiers
or arguments allowed for this command.
<assign> (^^) makes a Z configuration change. An argument MUST be
specified and be of the form described for TOOLS.INI above:
<arg>linearg<assign> treats each line as a separate assignment or key
definition.
<arg>textarg<assign> treats textarg as an assignment or a key
definition.
<arg>nullarg<assign> treats the remainder of the line to the right of
the cursor but not including the line break as an assignment or a
key definition.
<arg>streamarg<assign> treats the outlined text as an assignment or a
key definition.
The special case of <arg>?<assign> displays all the current keyboard
assignments.
<backtab> (SHIFT-TAB) is a cursor movement function. It will move the
cursor leftward to the next tabstop. Tabstops are defined to be every
nth character where n is settable by the tabstops editor switch.
Being a cursor movement function, <backtab> takes no arguments nor
mode-command modifiers.
<begline> (END) is a cursor movement function that places the cursor on
the first non-blank character on the line.
<meta><begline> places the cursor on the first character position on
the line regardless of the contents of the line.
<cancel> (^C) will cancel the current operation in progress. Depending
on your operating system, some of these operations may be completed
before the <cancel> is read. <cancel> will always cancel an argument
so it never takes an argument nor a mode-command modifier.
- 4 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<cdelete> (BACKSPACE or ^H) will attempt to delete the previous
character. Note that this function will NOT delete line breaks. For
that function, see the <emacscdel> function below. If the cursor is
in column 1, <cdelete> will move the cursor to the previous line and
place it just to the right of the last character on that line. If
issued while an argument was being issued, <cdelete> is treated as a
cursor-left command. If issued in insert mode, <cdelete> will delete
the previous character from the line, reducing the length of the line
by 1. If there is nothing but whitespace on the line to the left of
the cursor, the cursor is placed in column 1 of the line. If the
cursor is beyond the last non- whitespace character on the line, it is
moved to the character immediately to the right of the end of line.
Otherwise, the cursor is moved one position to the left and a space
replaces the character under the cursor.
<compile> (^U) is used to perform background compilations and to review
error messages from them.
<compile> will read the next error message and attempt to parse it
into file, row, column and message. If it is successful, Z will
read in the file, place the cursor on the appropriate row and
column, and display the message on the dialog line. <compile>
currently works with GREP, Lattice C, Microsoft C, and the C-based
Microsoft Assembler.
<meta><compile> will read error messages and advance to the first
message that is NOT for the current file.
<arg>nullarg<compile> will attempt to compile the current file,
resulting in the current file being compiled and linked. The
command and arguments used to compile the file are determined by
the extension of the file and can be changed by the extmake: switch
.
<arg>textarg<compile> uses a special command and arguments to compile
the specified text. This can be changed by using the extmake:
switch with extension "text".
<arg>streamarg<compile> as above but uses the text selected on the
screen as the arguments for the command.
<arg><arg>textarg<compile> will invoke the text as a program. The
program is assumed to display its errors in file row column message
format. This is often useful to find text in a series of files by
using GREP:
grep /l pat files ; zibo grep
grep -n pat files ; *NIX grep
<curdate> (ALT-D) is a predefined macro that will insert the current
date at the current cursor position.
<curday> is a predefined macro that will insert the current day at the
current cursor position.
- 5 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<curfileext> is a predefined macro that is the extension of the most
recently switched file.
<curfilenam> is a predefined macro that is the file name of the most
recently switched file.
<curtime> (ALT-T) is a predefined macro that will insert the current
time at the current cursor position.
<curuser> is a predefined macro that will insert the name of the current
user at the current cursor position. This uses the MAILNAME
environment variable.
<down> (DOWN arrow) is a cursor movement function that moves the cursor
to the line below the current one. If this results in the cursor
moving off the bottom of the screen, the window is adjusted
appropriately. Being a cursor movement function, <down> takes no
arguments.
<meta><down> moves the cursor to the same column position but to the
last displayed line on the current window.
<emacscdel> (CTRL-BACKSPACE) behaves identically to <cdelete> except
that at the beginning of a line while in insert mode, <emacscdel> will
delete the line break between the current line and the previous line,
joining the two lines together.
<emacsnewl> (unassigned) behaves identically to <newline> except that
when in insert mode, it will break the current line at the current
cursor position.
<endline> (PGDN) moves the cursor beyond the last character on a line.
<meta><endline> moves the cursor to the column corresponding to the
right- most edge of the screen.
<exit> (F9) is used to terminating an editing session. There are
editing flags and switches that modify the behaviour of the <exit>
command: askexit/noaskexit, backup, entab, tmpsav (see Editing
Switches and Flags section).
<exit> saves the current file if it has been modified. Z saves its
temporary file and scans the set of in-core files. If any are
modified, Z will ask you to confirm the exit.
<meta><exit> is identical to <exit> except that it skips the save of
the current file. See <setfile> for details of the saving
operation.
<arg><exit> is identical to <exit> except that Z does not exit but
advances to the next file on the command line.
<arg><meta><exit> is identical to <arg><exit> except that Z does not
save the current file.
- 6 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<home> (HOME) is a cursor movement function that places the cursor in
the upper-left-hand corner of the current window.
<information> (F1) saves the current file and <setfile>'s to the
information file which contains a list of all files in core along with
the current set of files that you have edited. The size of this list
is controlled by the tmpsav switch.
<initialize> (F2) causes Z to reread the user configuration files. This
is useful when initially configuring your editor and when attempting
to use someone else's keyboard assignments.
<initialize> rereads all the Z switches for the user configuration
files.
<arg>text<initialize> rereads all the Z switches for the system and
reads the user switches from the section of the user's TOOLS.INI
that is tagged [Z- text].
<insertmode> (^N) toggles the state of the insert mode switch. This
switch is easily seen on the right hand side of the status line. When
insert mode is on, each graphic character is inserted at the current
cursor position, the remainder of the line is shifted one character to
the right and the cursor is advanced one position. Note, however,
that the <newline> function is NOT a graphic character and does NOT
cause insertion of a line break. For this, please see the <emacsnewl>
function. Z normally is started in overstrike mode. You can use the
editor flag enterinsmode to cause Z to begin execution in insert mode.
<ldelete> (^F) deletes a range of lines or a box within a series of
lines.
<ldelete> deletes the current line and places it into the pick buffer.
<arg><ldelete> deletes from the cursor up to the end of line and
places that text into the pick buffer. Note that it does not join
the current line with the next line.
<arg>linearg<ldelete> deletes all lines specified and places the block
into the pick buffer.
<arg>boxarg<ldelete> deletes the box specified from the file and
places it into the pick buffer.
<arg>streamarg<ldelete> deletes the specified characters (treated as a
box one line high).
<left> (LEFT arrow) moves the cursor one position to the left. If this
results in the cursor being off the screen, then the window is
adjusted appropriately by scrolling a number of columns defined by the
hscroll editor switch.
<meta><left> moves the cursor to the leftmost position on the screen.
- 7 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<linsert> (^D) inserts blank lines.
<linsert> inserts one blank line underneath the cursor.
<arg><linsert> inserts or deletes blanks at the beginning of a line to
make the first non-blank character appear under the cursor.
<arg>linearg<linsert> inserts the indicated range of blank lines.
<arg>boxarg<linsert> inserts an empty box in the indicated range.
<arg>streamarg<linsert> inserts an empty region (treated as a box one
line high).
<mark> (^P) goes to a specified spot in a file.
<mark> goes to beginning of file.
<arg><mark> restores the screen to its previous location. Z remembers
only one previous location. <arg><mark> is used to flip between
two viewpoints in the file.
<arg>numarg<mark> moves the cursor to the beginning of the specified
line.
<arg><arg>text<mark> defines a bookmark at the current cursor
location. That bookmark can now be addressed with the specified
textual name.
<arg>text<mark> moves the cursor to the indicated bookmark. If it was
not previously defined, Z will use the editor switch markfile to
find a file that contains bookmark definitions. This file contains
lines of the form: bookmark file row column
<meta> (ESC) is a function modifier. It is used to prefix functions to
change their behaviour. See the individual function description for
more information.
<mlines> (^W) adjusts the window on the file a few lines towards the
beginning of the file.
<mlines> adjusts the window backwards in the file. The number of
lines it is moved is determined by the editor switch vscroll.
<arg><mlines> moves the window until the line that the cursor is on is
at the bottom of the screen.
<arg>numarg<mlines> moves the window backwards the specified number of
lines.
<mpage> (^Q) moves the window back by pages.
<mpage> moves the window backwards in the file by one screen's worth
of lines.
- 8 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<arg><mpage> moves the window all the way back to the beginning of the
file.
<arg>numarg<mpage> moves the window the specified number of pages
backward in the file.
<mpara> (CTRL-PGUP) moves the cursor backwards by paragraphs.
Paragraphs are blocks of text separated by blank lines.
<mpara> moves the cursor backwards one paragraph and places the cursor
on the first line of the paragraph
<meta><mpara> moves the cursor backwards one paragraph and places the
cursor just beyond the last line of the paragraph.
<msearch> (^E) searches backwards in a file for a string or a regular
expression. If the editor switch case is set then case is significant
in the search otherwise case is ignored.
<msearch> searches backwards for the previously defined string or
pattern. If the string/pattern is found, then the window is moved
to display it and the matched string/pattern is highlighted. If it
was not found, no cursor movement takes place.
<arg>streamarg<msearch> searches backwards for the selected text. In
this case, the text is treated as a simple string.
<arg>text<msearch> searches backwards for the text. In this case, the
text is treated as a simple string.
<arg><arg>streamarg<msearch>
<arg><arg>text<msearch> searches backwards for a regular expression.
The patterns that Z understands are called "regular expressions".
These are true regular expressions (plus some optimizations) rather
than the much-weakened form that is used on the *NIX xGREPs.
The simplest form of regular expression is just a string, like
"hello". This pattern will match occurrences of the word "hello", or
substrings of words like "othello". It will even match the string
"Hello" if the nocase editor switch is given. Most characters in a
regular expression match themselves, but some characters (one of
"{}()[]!~:?^$+*@#") have a special meaning to the pattern matcher.
These special characters are used to specify more complex patterns:
\ "escape"; ignore the special meaning of the next character and just
match that character. "\?" matches the question-mark and "\\"
matches a single backslash.
? "wildcard"; match any character.
[class] "character class"; this is used to match one of a set of
characters. "[abc]" matches an "a", "b", or "c". The character "-"
- 9 -
Z User's Guide Printed: November 5, 1986 11:52 AM
is used here to specify a range of characters; "[a-zA-z0-9]"
matches a letter or a number.
[~class] "not character class"; this is used to match a character
that is NOT in the specified set of characters.
^ "beginning of line"; this matches or "anchors" a pattern to the
beginning of the line.
$ "end of line"; matches the end of a line.
In the following, X denotes some regular expression:
X* "closure"; this matches zero or more occurrences of the pattern X.
It will match as few X's as it can, e.g. if the pattern is "?*ab"
then it will match the first "ab" in "abababab". If the pattern is
"?*ab$", then it will match the entire string "abababab", with the
"?*" portion of the pattern matching "ababab".
X+ "plus"; this is just a shorthand for XX+. It will match one or
more occurrences of the pattern X.
X@ "greedy closure"; this matches zero or more occurrences of the
pattern X, but it starts out by matching as many X's as it can. and
backs off on this choice ONLY if the rest of the pattern doesn't
match. So, the pattern "?@ab" will match the whole string
"abababab", unlike "?*ab" above.
X# "greedy plus"; a shorthand for XX@.
(X1!X2!...!Xn) "alternation"; this will match either X1, or X2, ...
or Xn. It tries them in that order and it will switch from Xi to
Xi+1 only if the rest of the pattern fails to match.
~X "not" or "guard"; this pattern matches nothing, but it checks to
see if the string matches X at this point, and fails if it does.
For example, "^~(foo!bar)?*$" will match all lines that don't begin
with "foo" or "bar".
X^n "power"; this pattern matches exactly n copies of X.
The following commonly used patters are defined for your typing
convenience. To use them, just put :<letter> in your pattern:
:a [a-zA-Z0-9] alphanumeric
:b ([ \t]#) whitespace
:c [a-zA-Z] alphabetic
:d [0-9] digit
:f ([~ "\[\]\:<|>+=;,.]#) file part
:h ([0-9a-zA-Z]#) hex number
:i ([a-zA-Z_$][a-zA-Z0-9_$]@) identifier
:n ([0-9]#.[0-9]@![0-9]@.[0-9]#![0-9]#) number
:p (([a-z]\:!)(\\!)(:f(.:f!)\\)@:f(.:f!)) path
:q ("[~"]@"!'[~']@') quoted string
- 10 -
Z User's Guide Printed: November 5, 1986 11:52 AM
:w ([a-zA-Z]#) word
:z ([0-9]#) integer
<mword> (unassigned) moves the cursor backwards by words.
<mword> moves the cursor backwards one word and places the cursor on
the beginning of the word.
<meta><mword> moves the cursor backwards one word and places the
cursor just beyond the end of the word.
<newline> (ENTER or ^M) moves the cursor to a new line.
<newline> moves the cursor to the beginning of the next line. If the
editor switch softcr is set, then Z will attempt to place the
cursor on a meaningfully tabbed-in position based on the type of
file. If the file is a C program, then Z will attempt to correctly
tab in based on continuation of lines and on open blocks.
Otherwise, if the next line is blank, Z will place the cursor in
the column corresponding to the first non-blank character in the
previous line. If all else fails, Z places the cursor on the first
non-blank character of the line.
<meta><newline> moves the cursor to the real beginning of the next
line.
<pbal> (^V) balances parenthesis and brackets.
<pbal> scans backwards through the file balancing parenthesis and
brackets. When the first unbalanced one is found, the matching
character is placed into the file at the cursor position. If it is
found in the visible window, Z will alter its color for a short
interval. If it is found and it is not visible, Z will display the
matching line on the dialog line.
<arg><pbal> scans forward for unbalanced characters.
<pick> (^K) grabs text from the file and places it into the pick buffer.
This allows simple copy-and-paste operations.
<pick> places the current line into the pick buffer.
<arg><pick> places the text from the current cursor position up to the
end-of- line into the pick buffer. Note that the line break is not
picked up.
<arg>linearg<pick> places the specified range of lines into the pick
buffer.
<arg>boxarg<pick> places the text of specified box into the pick
buffer.
<arg>text<pick> places the text into the pick buffer.
- 11 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<arg>numarg<pick> places the specified range of lines into the pick
buffer.
<arg>markarg<pick> places the range of text between the cursor and the
location of the bookmark into the pick buffer.
<plines> (^T) adjusts the window on the file a few lines towards the end
of the file.
<plines> adjusts the window forward in the file. The number of lines
it is moved is determined by the editor switch vscroll.
<arg><plines> moves the window until the line that the cursor is on is
at the top of the screen.
<arg>numarg<plines> moves the window forward the specified number of
lines.
<ppage> (^L) moves the window forward by pages.
<ppage> moves the window forwards in the file by one screen's worth of
lines.
<arg><ppage> moves the window all the way to the end of the file.
<arg>numarg<ppage> moves the window the specified number of pages
forward in the file.
<ppara> (CTRL-PGDN) moves the cursor forwards by paragraphs. Paragraphs
are blocks of text separated by blank lines.
<ppara> moves the cursor forwards one paragraph and places the cursor
on the first line of the paragraph
<meta><ppara> moves the cursor forwards one paragraph and places the
cursor just beyond the last line of the paragraph.
<psearch> (^R) searches forwards in a file for a string or a regular
expression. See <msearch> for the definition of the regular expression
patterns.
<psearch> searches forwards for the previously defined string or
pattern. If the string/pattern is found, then the window is moved
to display it and the matched string/pattern is highlighted. If it
was not found, no cursor movement takes place.
<arg>streamarg<psearch> searches forwards for the selected text. In
this case, the text is treated as a simple string.
<arg>text<psearch> searches forwards for the text. In this case, the
text is treated as a simple string.
<arg><arg>streamarg<psearch>
<arg><arg>text<psearch> searched forwards for a regular expression.
- 12 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<push> (^Z) runs the command shell. Depending on the OS, you either get
COMMAND.COM or SH.
<push> saves the current file and runs the shell.
<meta><push> does not save the current file and runs the shell. See
<setfile> for a description of the save operation.
<arg><push> uses the text on the screen from the cursor up to end-of-
line as a command to the shell.
<arg>text<push> uses the text as a command to the shell.
<put> (^G) inserts the text of the pick buffer into the file beginning
at the current cursor position. The insertion depends on the type of
text stored in the pick buffer:
<arg>text<put>
<arg>streamarg<put> places the specified text into the pick buffer and
inserts the specified text at the current cursor position.
<arg><arg>text<put> interprets text as a filename and will insert the
contents of the specified file into the current file at the current
cursor position.
lines are inserted directly before the cursor and do not break the
line. boxes are inserted in the current line and all succeeding lines.
streams break the current line and are inserted at the cursor.
<pword> (unassigned) moves the cursor forwards by words.
<pword> moves the cursor forwards one word and places the cursor on
the beginning of the word.
<meta><pword> moves the cursor forwards one word and places the cursor
just beyond the end of the word.
<qreplace> (CTRL-ENTER or ^J) performs global search and replace but
prompts for confirmation of each replacement. See <replace>.
<quote> (unassigned) reads one keystroke from the keyboard and treats it
literally. This is useful for inserting text into a file that happens
to be assigned to an editor function.
<refresh> (F10) reloads or discards the current file.
<refresh> prompts and rereads the file from disk, discarding all
edits.
<arg><refresh> prompts and discards the file from the editor memory.
<replace> (^O) performs global search and replace. The editor switch
case indicates whether case is significant for comparison.
- 13 -
Z User's Guide Printed: November 5, 1986 11:52 AM
<replace>
<arg><replace>
perform simple search and replace, prompting you for the search
string and for the replacement string. The search begins at the