forked from abiliojr/aedit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuseful.doc
More file actions
103 lines (72 loc) · 3.36 KB
/
useful.doc
File metadata and controls
103 lines (72 loc) · 3.36 KB
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
*-*-* USEFUL.DOC *-*-*
This file lists and summarizes the macros in the file USEFUL.MAC.
NOTES:
--To activate the macros, type: M(acro) G(et) USEFUL.MAC.
--These macros occupy about 1900 bytes of the macro buffer. The default,
3072, leaves you enough room to add more macros.
--The macro uses the N7, N8, and N9 N-variables only. All other
N-variables are not affected and can be used freely throughout the rest
of the AEDIT session.
--The macro uses the S9 S-variables only. All other S-variables are not
affected and can be used freely throughout the rest of the AEDIT
session.
--Some macros use the SET command to change the value of some AEDIT
features (e.g., changing the setting of K_token and Radix).
--You can modify the file and the macros so they will fit you best. In
particular, you can create synonyms for useful macros, e.g.,
M\010\BRe+B\NL\MM ==> so <CTRL-P> works as +B.
List of Macros:
<BL>: Use blank in addition to tab.
. : Find the next occurrence of the last target string.
, : Find the previous occurrence of the last target string.
L : Convert the character under the cursor to lowercase.
U : Convert the character under the cursor to uppercase.
_ : Convert the word beginning at the cursor location to lowercase.
^ : Convert the word beginning at the cursor location to uppercase.
<CTRL-W>:
Advance cursor to the next word.
<CTRL-K>:
Advance cursor to the previous word.
] : Scroll left 1 position.
[ : Scroll right 1 position.
} : Scroll left 3 positions.
{ : Scroll right 3 positions.
+W : Skip forward while white spaces.
+N : Skip forward while non-white spaces.
+B : Skip forward while blanks.
-W : Skip backward while white spaces.
-N : Skip backward while non-white spaces.
-B : Skip backward while blanks.
DT : Insert date in mmm dd, yyyy format (e.g., July 24, 1984)
DM : Insert date in dd-mmm-yyyy format (e.g., 24-Jul-1984 )
Dates are as returned by the UDI DqGetTime procedure.
<CTRL-B>:
Insert the Block Buffer into the text.
PG : Page the text. Header is always "Heading".
PP : Page the text. Header is as given in the S9 S-variable.
The macros try, when possible, to put headers in empty lines.
The macros use Tag C and Tag D for internal computations.
CNTR: Center the current line.
DETAB:
Convert all tabs to blanks.
ENTAB:
Convert all blanks to tabs. (works very slowly)
SHL : Display current line number.
SFL : Display number of lines in file.
SFC : Display number of characters in file.
SHP : Display current position in line.
<MEXEC>C:
On-line calculator. Enter an expression; press <MEXEC>C at its
right side. The result is written, and you can continue with
additional calculations.
SMP : Set the margins to be the same as those of the paragraph the
cursor is in.
NUM : Insert line number prefix to each line in a text file.
The macro uses Tag D for internal computations.
0 : Set margins- indent=0, left=0, right=70
2 : Set margins- indent=0, left=3, right=70
3 : Set margins- indent=3, left=3, right=70
4 : Set margins- indent=3, left=5, right=70
5 : Set margins- indent=5, left=5, right=70
6 : Set margins- indent=5, left=7, right=70
7 : Set margins- indent=7, left=7, right=70