annotate runtime/doc/os_beos.txt @ 18372:11394af51615 v8.1.2180

patch 8.1.2180: Error E303 is not useful when 'directory' is empty Commit: https://github.com/vim/vim/commit/00e192becd50a38cb21a1bc3f86fcc7a21f8ee88 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 19 17:01:28 2019 +0200 patch 8.1.2180: Error E303 is not useful when 'directory' is empty Problem: Error E303 is not useful when 'directory' is empty. Solution: Skip the error message. (Daniel Hahler, https://github.com/vim/vim/issues/5067)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Oct 2019 17:15:03 +0200
parents 2f7e67dd088c
children af69c9335223
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
13963
1174611ad715 Vim 8.1 release
Christian Brabandt <cb@256bit.org>
parents: 11473
diff changeset
1 *os_beos.txt* For Vim version 8.1. Last change: 2016 Mar 28
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 Bram Moolenaar
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 *BeOS* *BeBox*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 This is a port of Vim 5.1 to the BeOS Preview Release 2 (also known as PR2)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 or later.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 This file contains the particularities for the BeBox/BeOS version of Vim. For
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 matters not discussed in this file, Vim behaves very much like the Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 |os_unix.txt| version.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 1. General |beos-general|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 2. Compiling Vim |beos-compiling|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 3. Timeout in the Terminal |beos-timeout|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 4. Unicode vs. Latin1 |beos-unicode|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 5. The BeOS GUI |beos-gui|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 6. The $VIM directory |beos-vimdir|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 7. Drag & Drop |beos-dragndrop|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 8. Single Launch vs. Multiple
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 Launch |beos-launch|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 9. Fonts |beos-fonts|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 10. The meta key modifier |beos-meta|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 11. Mouse key mappings |beos-mouse|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 12. Color names |beos-colors|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 13. Compiling with Perl |beos-perl|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 1. General *beos-general*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 The default syntax highlighting mostly works with different foreground colors
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
34 to highlight items. This works best if you set your Terminal window to a
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
35 darkish background and light letters. Some middle-grey background (for
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 instance (r,g,b)=(168,168,168)) with black letters also works nicely. If you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 use the default light background and dark letters, it may look better to
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
38 simply reverse the notion of foreground and background color settings. To do
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 this, add this to your .vimrc file (where <Esc> may need to be replaced with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 the escape character): >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :if &term == "beos-ansi"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 : set t_AB=<Esc>[3%dm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 : set t_AF=<Esc>[4%dm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 :endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 2. Compiling Vim *beos-compiling*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 From the Advanced Access Preview Release (AAPR) on, Vim can be configured with
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
51 the standard configure script. To get the compiler and its flags right, use
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 the following command-line in the shell (you can cut and paste it in one go):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 CC=$BE_C_COMPILER CFLAGS="$BE_DEFAULT_C_FLAGS -O7" \
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 ./configure --prefix=/boot/home/config
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 $BE_C_COMPILER is usually "mwcc", $BE_DEFAULT_C_FLAGS is usually "-I- -I."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 When configure has run, and you wish to enable GUI support, you must edit the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 config.mk file so that the lines with GUI_xxx refer to $(BEOSGUI_xxx) instead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 of $(NONE_xxx).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 Alternatively you can make this change in the Makefile; it will have a
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
63 more permanent effect. Search for "NONE_".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
65 After compilation you need to add the resources to the binary. Add the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 following few lines near the end (before the line with "exit $exit_value") of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 the link.sh script to do this automatically.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 rmattr BEOS:TYPE vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 copyres os_beos.rsrc vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 mimeset vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 Also, create a dummy file "strip":
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 #!/bin/sh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 mimeset $1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 exit 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 You will need it when using "make install" to install Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 Now type "make" to compile Vim, then "make install" to install it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 If you want to install Vim by hand, you must copy Vim to $HOME/config/bin, and
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
84 create a bunch of symlinks to it ({g,r,rg}{vim,ex,view}). Furthermore you must
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
85 copy Vim's configuration files to $HOME/config/share/vim:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 vim-5.0s/{*.vim,doc,syntax}. For completeness, you should also copy the nroff
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
87 manual pages to $HOME/config/man/man1. Don't forget ctags/ctags and xxd/xxd!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
89 Obviously, you need the unlimited linker to actually link Vim. See
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 http://www.metrowerks.com for purchasing the CodeWarrior compiler for BeOS.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 There are currently no other linkers that can do the job.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 This won't be able to include the Perl or Python interfaces even if
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 you have the appropriate files installed. |beos-perl|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 3. Timeout in the Terminal *beos-timeout*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 Because some POSIX/UNIX features are still missing[1], there is no direct OS
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
100 support for read-with-timeout in the Terminal. This would mean that you cannot
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 use :mappings of more than one character, unless you also :set notimeout.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 |'timeout'|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 To circumvent this problem, I added a workaround to provide the necessary
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 input with timeout by using an extra thread which reads ahead one character.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 As a side effect, it also makes Vim recognize when the Terminal window
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 resizes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 Function keys are not supported in the Terminal since they produce very
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 indistinctive character sequences.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 These problems do not exist in the GUI.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 [1]: there is no select() on file descriptors; also the termios VMIN and VTIME
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
115 settings do not seem to work properly. This has been the case since DR7 at
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 least and still has not been fixed as of PR2.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 *beos-unicode*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 4. Unicode vs. Latin1 *beos-utf8*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 BeOS uses Unicode and UTF-8 for text strings (16-bit characters encoded to
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
122 8-bit characters). Vim assumes ISO-Latin1 or other 8-bit character codes.
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
123 This does not produce the desired results for non-ASCII characters. Try the
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
124 command :digraphs to see. If they look messed up, use :set isprint=@ to
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 (slightly) improve the display of ISO-Latin1 characters 128-255. This works
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 better in the GUI, depending on which font you use (below).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 You may also use the /boot/bin/xtou command to convert UTF-8 files from (xtou
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 -f iso1 filename) or to (xtou -t iso1 filename) ISO-Latin1 characters.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 5. The BeOS GUI *beos-gui*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
2564
f85004953416 README and help file updates.
Bram Moolenaar <bram@vim.org>
parents: 2561
diff changeset
134 The BeOS GUI is no longer included. It was not maintained for a while and
f85004953416 README and help file updates.
Bram Moolenaar <bram@vim.org>
parents: 2561
diff changeset
135 most likely didn't work. If you want to work on this: get the Vim 6.x version
f85004953416 README and help file updates.
Bram Moolenaar <bram@vim.org>
parents: 2561
diff changeset
136 and merge it back in.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
302
250611b3068d updated for version 7.0080
vimboss
parents: 236
diff changeset
139 6. The $VIM directory *beos-vimdir*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 $VIM is the symbolic name for the place where Vims support files are stored.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 The default value for $VIM is set at compile time and can be determined with >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 :version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
146 The normal value is /boot/home/config/share/vim. If you don't like it you can
14123
583bf95b6c84 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13963
diff changeset
147 set the VIM environment variable to override this, or set 'helpfile' in your
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 .vimrc: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 :if version >= 500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 : set helpfile=~/vim/vim54/doc/help.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 : syntax on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 :endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 7. Drag & Drop *beos-dragndrop*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 You can drop files and directories on either the Vim icon (starts a new Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 session, unless you use the File Types application to set Vim to be "Single
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 Launch") or on the Vim window (starts editing the files). Dropping a folder
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 sets Vim's current working directory. |:cd| |:pwd| If you drop files or
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 folders with either SHIFT key pressed, Vim changes directory to the folder
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
163 that contains the first item dropped. When starting Vim, there is no need to
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 press shift: Vim behaves as if you do.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 Files dropped set the current argument list. |argument-list|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 8. Single Launch vs. Multiple Launch *beos-launch*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 As distributed Vim's Application Flags (as seen in the FileTypes preference)
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
172 are set to Multiple Launch. If you prefer, you can set them to Single Launch
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 instead. Attempts to start a second copy of Vim will cause the first Vim to
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
174 open the files instead. This works from the Tracker but also from the command
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
175 line. In the latter case, non-file (option) arguments are not supported.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 NB: Only the GUI version has a BApplication (and hence Application Flags).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 This section does not apply to the GUI-less version, should you compile one.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 9. Fonts *beos-fonts*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 Set fonts with >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 :set guifont=Courier10_BT/Roman/10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 where the first part is the font family, the second part the style, and the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
188 third part the size. You can use underscores instead of spaces in family and
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 style.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
191 Best results are obtained with monospaced fonts (such as Courier). Vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 attempts to use all fonts in B_FIXED_SPACING mode but apparently this does not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 work for proportional fonts (despite what the BeBook says).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 Vim also tries to use the B_ISO8859_1 encoding, also known as ISO Latin 1.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
196 This also does not work for all fonts. It does work for Courier, but not for
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
197 ProFontISOLatin1/Regular (strangely enough). You can verify this by giving the >
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 :digraphs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 command, which lists a bunch of characters with their ISO Latin 1 encoding.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 If, for instance, there are "box" characters among them, or the last character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 isn't a dotted-y, then for this font the encoding does not work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 If the font you specify is unavailable, you get the system fixed font.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 Standard fixed-width system fonts are:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 ProFontISOLatin1/Regular
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 Courier10_BT/Roman
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 Courier10_BT/Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 Courier10_BT/Bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 Courier10_BT/Bold_Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 Standard proportional system fonts are:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 Swis721_BT/Roman
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 Swis721_BT/Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 Swis721_BT/Bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 Swis721_BT/Bold_Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 Dutch801_Rm_BT/Roman
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 Dutch801_Rm_BT/Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 Dutch801_Rm_BT/Bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 Dutch801_Rm_BT/Bold_Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 Baskerville/Roman
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 Baskerville/Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 Baskerville/Bold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 Baskerville/Bold_Italic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 SymbolProp_BT/Regular
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 Try some of them, just for fun.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 10. The meta key modifier *beos-meta*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 The META key modifier is obtained by the left or right OPTION keys. This is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 because the ALT (aka COMMAND) keys are not passed to applications.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 11. Mouse key mappings *beos-mouse*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 Vim calls the various mouse buttons LeftMouse, MiddleMouse and RightMouse. If
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 you use the default Mouse preference settings these names indeed correspond to
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
244 reality. Vim uses this mapping:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 Button 1 -> LeftMouse,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 Button 2 -> RightMouse,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 Button 3 -> MiddleMouse.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 If your mouse has fewer than 3 buttons you can provide your own mapping from
8795
aba2d0a01290 commit https://github.com/vim/vim/commit/7db8f6f4f85e5d0526d23107b2a5e2334dc23354
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
251 mouse clicks with modifier(s) to other mouse buttons. See the swapmouse
aba2d0a01290 commit https://github.com/vim/vim/commit/7db8f6f4f85e5d0526d23107b2a5e2334dc23354
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
252 package for an example: |gui-mouse-mapping|
aba2d0a01290 commit https://github.com/vim/vim/commit/7db8f6f4f85e5d0526d23107b2a5e2334dc23354
Christian Brabandt <cb@256bit.org>
parents: 5294
diff changeset
253 $VIMRUNTIME/pack/dist/opt/swapmouse/plugin/swapmouse.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 12. Color names *beos-colors*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
258 Vim has a number of color names built-in. Additional names are read from the
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
259 file $VIMRUNTIME/rgb.txt, if present. This file is basically the color
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
260 database from X. Names used from this file are cached for efficiency.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 13. Compiling with Perl *beos-perl*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
265 Compiling with Perl support enabled is slightly tricky. The Metrowerks
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
266 compiler has some strange ideas where to search for include files. Since
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 several include files with Perl have the same names as some Vim header
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
268 files, the wrong ones get included. To fix this, run the following Perl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 script while in the vim-5.0/src directory: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 preproc.pl > perl.h
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 #!/bin/env perl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 # Simple #include expander, just good enough for the Perl header files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 use strict;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 use IO::File;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 use Config;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 sub doinclude
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 my $filename = $_[0];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 my $fh = new IO::File($filename, "r");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 if (defined $fh) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 print "/* Start of $filename */\n";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 while (<$fh>) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 if (/^#include "(.*)"/) {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 doinclude($1);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 print "/* Back in $filename */\n";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 } else {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 print $_;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 print "/* End of $filename */\n";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 undef $fh;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 } else {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 print "/* Cannot open $filename */\n";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 print "#include \"$filename\"\n";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 chdir $Config{installarchlib}."/CORE";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 doinclude "perl.h";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 It expands the "perl.h" header file, using only other Perl header files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 Now you can configure & make Vim with the --enable-perlinterp option.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 Be warned though that this adds about 616 kilobytes to the size of Vim!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 Without Perl, Vim with default features and GUI is about 575K, with Perl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 it is about 1191K.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 -Olaf Seibert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 [Note: these addresses no longer work:]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 <rhialto@polder.ubc.kun.nl>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 http://polder.ubc.kun.nl/~rhialto/be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319
14421
2f7e67dd088c Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 14123
diff changeset
320 vim:tw=78:ts=8:noet:ft=help:norl: