annotate runtime/doc/os_risc.txt @ 332:d5e895294dce

updated for version 7.0086
author vimboss
date Thu, 16 Jun 2005 21:53:56 +0000
parents 4707450c2b33
children 6beb2c667935
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
1 *os_risc.txt* For Vim version 7.0aa. Last change: 2005 Mar 29
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Thomas Leonard
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 *riscos* *RISCOS* *RISC-OS*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 This file contains the particularities for the RISC OS version of Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 The RISC OS port is a completely new port and is not based on the old `archi'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 port.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 1. File locations |riscos-locations|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 2. Filename munging |riscos-munging|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 3. Command-line use |riscos-commandline|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 4. Desktop (GUI) use |riscos-gui|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 5. Remote use (telnet) |riscos-remote|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 6. Temporary files |riscos-temp-files|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 7. Interrupting |riscos-interrupt|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 8. Memory usage |riscos-memory|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 9. Filetypes |riscos-filetypes|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 10. The shell |riscos-shell|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 11. Porting new releases |riscos-porting|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 If I've missed anything, email me and I'll try to fix it. In fact, even if I
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 haven't missed anything then email me anyway to give me some confidence that it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 actually works!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 Thomas Leonard <tal197@ecs.soton.ac.uk>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 [these URLs no longer work...]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 Port homepage: http://www.ecs.soton.ac.uk/~tal197/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 or try: http://www.soton.ac.uk/~tal197/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 *riscos-locations*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 1. File locations
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 The Vim executable and shared resource files are all stored inside the !Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 application directory.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 When !Vim is first seen by the filer, it aliases the *vi and *ex commands to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 run the command-line versions of Vim (see |riscos-commandline|).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 !Vim.Resources and !Vim.Resources2 contain the files from the standard Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 distribution, but modified slightly to work within the limits of ADFS, plus
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 some extra files such as the window templates.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 User choices are read from `Choices:*' and are saved to `<Choices$Write>.*'.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
50 If you have the new !Boot structure then these should be set up already. If
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 not, set Choices$Path to a list of directories to search when looking for
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
52 user configuration files. Set Choices$Write to the directory you want files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 to be saved into (so your search patterns and marks can be remembered between
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 sessions).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 *riscos-munging*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 2. Filename munging
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 All pathname munging is disabled by default, so Vim should behave like a
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
61 normal RISC OS application now. So, if you want to edit `doc/html' then you
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 actually type `*vi doc/html'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 The only times munging is done is when:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 - Searching included files from C programs, since these are always munged.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 See |[I|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 Note: make sure you are in the right directory when you use this
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
69 command (i.e. the one with subdirectories 'c' and 'h').
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 - Sourcing files using |:so|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 Paths starting `$VIM/' are munged like this:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 $VIM/syntax/help.vim -> Vim:syntax.help
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 Also, files ending in `.vim' have their extensions removed, and slashes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 replaced with dots.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 Some tag files and script files may have to be edited to work under this port.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 *riscos-commandline*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 3. Command-line use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 To use Vim from the command-line use the `*vi' command (or '*ex' for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 |Ex-mode|).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 Type `*vi -h' for a list of options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 Running the command-line version of Vim in a large high-color mode may cause
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
91 the scrolling to be very slow. Either change to a mode with fewer colors or
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 use the GUI version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 Also, holding down Ctrl will slow it down even more, and Ctrl-Shift will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 freeze it, as usual for text programs.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 *riscos-gui*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 4. Desktop use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 Limitations:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 - Left scrollbars don't work properly (right and bottom are fine).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 - Doesn't increase scroll speed if it gets behind.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 You can resize the window by dragging the lower-right corner, even though
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 there is no icon shown there.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 You can use the --rows and --columns arguments to specify the initial size of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 the Vim window, like this: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 *Vi -g --rows 20 --columns 80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 The global clipboard is supported, so you can select some text and then
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 paste it directly into another application (provided it supports the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 clipboard too).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
118 Clicking Menu now opens a menu like a normal RISC OS program. Hold down Shift
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 when clicking Menu to paste (from the global clipboard).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 Dragging a file to the window replaces the CURRENT buffer (the one with the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 cursor, NOT the one you dragged to) with the file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 Dragging with Ctrl held down causes a new Vim window to be opened for the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 file (see |:sp|).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 Dragging a file in with Shift held down in insert mode inserts the pathname of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 the file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 :browse :w opens a standard RISC OS save box.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 :browse :e opens a directory viewer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 For fonts, you have the choice of the system font, an outline font, the system
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 font via ZapRedraw and any of the Zap fonts via ZapRedraw: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 :set guifont=
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
137 < To use the system font via the VDU drivers. Supports
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 bold and underline.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 :set guifont=Corpus.Medium
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
141 < Use the named outline font. You can use any font, but
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 only monospaced ones like Corpus look right.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 :set guifont=Corpus.Medium:w8:h12:b:i
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 < As before, but with size of 8 point by 12 point, and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 in bold italic.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 If only one of width and height is given then that
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
148 value is used for both. If neither is given then 10
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 point is used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
151 Thanks to John Kortink, Vim can use the ZapRedraw module. Start the font name
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 with '!' (or '!!' for double height), like this: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 :set guifont=!!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 < Use the system font, but via ZapRedraw. This gives a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 faster redraw on StrongARM processors, but you can't
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
157 get bold or italic text. Double height.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 :set guifont=!script
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 < Uses the named Zap font (a directory in VimFont$Path).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 The redraw is the same speed as for '!!', but you get
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 a nicer looking font.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 Only the "man+" and "script" fonts are supplied
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 currently, but you can use any of the Zap fonts if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 they are in VimFont$Path.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 Vim will try to load font files '0', 'B', 'I' and 'IB'
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
167 from the named directory. Only '0' (normal style) MUST
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
168 be present. Link files are not currently supported.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 Note that when using ZapRedraw the edit bar is drawn in front of the character
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
171 you are on rather than behind it. Also redraw is incorrect for screen modes
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
172 with eigen values of 0. If the font includes control characters then you can
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 get Vim to display them by changing the 'isprint' option.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 If you find the scrolling is too slow on your machine, try experimenting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 with the 'scrolljump' and 'ttyscroll' options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 In particular, StrongARM users may find that: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 :set ttyscroll=0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 makes scrolling faster in high-color modes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 =============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 *riscos-remote*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 5. Remote use (telnet)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 I have included a built-in termcap entry, but you can edit the termcap file to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 allow other codes to be used if you want to use Vim from a remote terminal.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 Although I do not have an internet connection to my Acorn, I have managed to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 run Vim in a FreeTerm window using the loopback connection.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 It seems to work pretty well now, using '*vi -T ansi'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 *riscos-temp-files*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 6. Temporary files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 If Vim crashes then the swap and backup files (if any) will be in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 directories set with the 'directory' and 'bdir' options. By default the swap
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
202 files are in <Wimp$ScrapDir> (i.e. inside !Scrap) and backups are in the
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
203 directory you were saving to. Vim will allow you to try and recover the file
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 when you next try to edit it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 To see a list of swap files, press <F12> and type `*vi -r'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 Vim no longer brings up ATTENTION warnings if you try to edit two files with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 the same name in different directories.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 However, it also no longer warns if you try to edit the same file twice (with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 two copies of Vim), though you will still be warned when you save that the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 datestamp has changed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 *riscos-interrupt*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 7. Interrupting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 To break out of a looping macro, or similar, hold down Escape in the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 command-line version, or press CTRL-C in the GUI version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 *riscos-memory*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 8. Memory usage
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
226 Vim will use dynamic areas on RISC OS 3.5 or later. If you can use them on
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
227 older machines then edit the !RunTxt and GVim files. I don't know what UnixLib
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 does by default on these machines so I'm playing safe.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 It doesn't work at all well without dynamic areas, since it can't change its
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
231 memory allocation once running. Hence you should edit `!Vim.GVim' and
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
232 `!Vim.!RunTxt' to choose the best size for you. You probably need at least
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 about 1400K.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 *riscos-filetypes*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 9. Filetypes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 You can now specify that autocommands are only executed for files of certain
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
240 types. The filetype is given in the form &xxx, when xxx is the filetype.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
242 Filetypes must be specified by number (e.g. &fff for Text).
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
244 The system has changed from version 5.3. The new sequence of events is:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 - A file is loaded. |'osfiletype'| is set to the RISC OS filetype.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 - Based on the filetype and pathname, Vim will try to set |'filetype'| to the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 Vim-type of the file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 - Setting this option may load syntax files and perform other actions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 - Saving the file will give it a filetype of |'osfiletype'|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 Some examples may make this clearer:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 Kind of file loaded osfiletype filetype ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 C code 'c.hellow' Text (&fff) C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 LaTeX document LaTeX (&2a8) TeX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 Draw document DrawFile (&aff) (not changed)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 *riscos-shell*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 10. The shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 - Bangs (!s) are only replaced if they are followed by a space or end-of-line,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 since many pathnames contain them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 - You can prefix the command with '~', which stops any output from being
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
267 displayed. This also means that you don't have to press <Enter> afterwards,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 and stops the screen from being redrawn. {only in the GUI version}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 *riscos-porting*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 11. Porting new releases to RISC OS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 Downloading everything you need:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 - Get the latest source distribution (see www.vim.org)
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
277 - Get the runtime environment files (e.g. these help files)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 - Get the `extra' archive (contains the RISC OS specific bits)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 - Get the RISC OS binary distribution (if possible)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 Unarchiving:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
284 - Create a raFS disk and put the archives on it
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 - Un-gzip them
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 - Un-tar them (*tar xELf 50 archive/tar)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 Recompiling the sources:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 - Create c, s, and h directories.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
292 - Put all the header files in 'h'. \
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
293 - Put all the C files in `c'. | And lose the extensions
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
294 - Put the assembler file (`swis/s') in 's'. /
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 - Rename all the files in `proto' to `h', like this:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 raFS::VimSrc.source.proto.file/pro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 becomes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 raFS::VimSrc.source.h.file_pro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 - In the files `h.proto' and `c.termlib', search and replace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 .pro"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 _pro.h"
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
303 - Create a simple Makefile if desired and do '*make -k'.
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
304 Use 'CC = gcc -DRISCOS -DUSE_GUI -O2 -x c' in the Makefile.
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
305 - Save the binary as !Vim.Vim in the binary distribution.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 Updating the run-time environment:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 - Replace old or missing files inside !Vim.Resources with the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 new files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 - Remove files in `doc' not ending in `/txt', except for `tags'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 - Lose the extensions from the files in `doc'.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
314 - Edit the `doc.tags' file. Remove extensions from the second column: >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 :%s/^\(.[^\t]*\t.*\)\.txt\t/\1\t/
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
316 - Remove extensions from the syntax files. Split them into two directories
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 to avoid the 77 entry limit on old ADFS filesystems.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 - Edit `Vim:FileType' to match `*.c.*' as well as `*/c' and so on.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 Add filetype checking too.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 - Edit `Vim:Menu' and remove all the keys from the menus: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 :%s/<Tab>[^ \t]*//
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 vim:tw=78:ts=8:ft=help:norl: