Commit | Line | Data |
---|---|---|
2fd0a8e1 BJ |
1 | .if !\n(xx .so tmac.e |
2 | .SH | |
3 | Limits | |
4 | .PP | |
5 | The editor limits that the user is likely to encounter are as follows: | |
6 | 512 characters per line, | |
7 | 256 characters per global command list, | |
8 | 64 characters per file name, | |
9 | 128 characters in the previous inserted and deleted text in | |
10 | .I open | |
11 | or | |
12 | .I visual, | |
13 | 100 characters in a shell escape command, | |
14 | 30 characters in a string valued option, | |
15 | and | |
16 | 256K characters in the temporary file.\u\s-2\(dg\s0\d | |
17 | .FS | |
18 | \(dg Repeated blanks and tabs are compressed in the temporary file, | |
19 | as are blanks between ``words''. | |
20 | This makes the buffer effectively larger than 256K characters; | |
21 | if the file being edited contains many repeated blanks, | |
22 | it may be editable even if it is larger than 256K. | |
23 | .FE | |
24 | The limit on the number of lines depends on the amount of core: | |
25 | each line takes at least 1 word, and to effect | |
26 | .I undo | |
27 | occasionally up to 2. | |
28 | This editor is much larger than | |
29 | .I ed | |
30 | and on | |
31 | \s-2PDP\s0 11/40's | |
32 | which do not have separate instruction and data space | |
33 | it is limited to about 2000 lines if | |
34 | .I visual | |
35 | or | |
36 | .I open | |
37 | are ever used. | |
38 | If a full core load of user space is not available | |
39 | .EX | |
40 | may not be usable. | |
41 | On a | |
42 | \s-2PDP\s0 11/45 | |
43 | or | |
44 | 11/70 | |
45 | the size of the editor is not a problem as it can run | |
46 | with separate instruction and data. | |
47 | .SH | |
48 | Notes on temporary file overflow | |
49 | .PP | |
50 | This editor uses a temporary file as a workspace. | |
51 | The management of this file is done in the same way as in | |
52 | .I ed . | |
53 | Each line in the file is represented by an in-core pointer to the | |
54 | image of that line on the disk. | |
55 | .PP | |
56 | The important point to note here is that the editor does | |
57 | .I not | |
58 | reclaim space in this temporary file used by lines which are | |
59 | deleted or changed. | |
60 | This means that files which are larger than 128K characters | |
61 | may be difficult to edit. | |
62 | Similarly systematic changes on large numbers of lines may | |
63 | run the editor out of temporary file space. | |
64 | .PP | |
65 | If the editor runs out of temporary space you can write the file | |
66 | and then use an | |
67 | .I edit | |
68 | command to read it back in. | |
69 | This will reclaim the lost space. | |
70 | A better solution is to split the file into smaller pieces or to use a stream | |
71 | editor such as | |
72 | .I gres | |
73 | on the file. | |
74 | .I Gres | |
75 | is described in section I of the | |
76 | .I | |
77 | UNIX Programmers Manual. | |
78 | .R | |
79 | .br | |
80 | .ne 30 |