Mercurial > vim
annotate runtime/doc/os_haiku.txt @ 20534:ae758aa4ee5e v8.2.0821
patch 8.2.0821: Vim9: memory leak in expr test
Commit: https://github.com/vim/vim/commit/45a1508a229b1d1d2eb79cabe55a183dc18fd040
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 25 00:28:33 2020 +0200
patch 8.2.0821: Vim9: memory leak in expr test
Problem: Vim9: memory leak in expr test.
Solution: Do not decrement the length of the list of functions if the
current function is not at the end.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 May 2020 00:30:03 +0200 |
parents | 56265f711890 |
children | 74e3316c1d5a |
rev | line source |
---|---|
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
1 *os_haiku.txt* For Vim version 8.2. Last change: 2020 Apr 30 |
19526 | 2 |
3 | |
4 VIM REFERENCE MANUAL by Bram Moolenaar | |
5 | |
6 | |
7 *Haiku* | |
8 This file contains the particularities for the Haiku version of Vim. For | |
9 matters not discussed in this file, Vim behaves very much like the Unix | |
10 |os_unix.txt| version. | |
11 | |
12 Haiku is an open-source operating system inspired by BeOS, that specifically | |
13 targets personal computing. | |
14 | |
15 1. General |haiku-general| | |
16 2. Compiling Vim |haiku-compiling| | |
17 3. The Haiku GUI |haiku-gui| | |
18 4. The $VIM directory |haiku-vimdir| | |
19721 | 19 5. The $USER_SETTINGS_DIR |
19526 | 20 directory |haiku-user-settings-dir| |
21 6. Drag & Drop |haiku-dragndrop| | |
22 7. Single Launch vs. Multiple | |
23 Launch |haiku-launch| | |
24 8. Fonts |haiku-fonts| | |
25 9. The meta key modifier |haiku-meta| | |
26 10. Mouse key mappings |haiku-mouse| | |
27 11. Color names |haiku-colors| | |
20241 | 28 12. GUI Toolbar Images |haiku-toolbar-images| |
29 13. Credits |haiku-support-credits| | |
30 14. Bugs & to-do |haiku-bugs| | |
19526 | 31 |
32 | |
33 1. General *haiku-general* | |
34 | |
35 The default syntax highlighting mostly works with different foreground colors | |
36 to highlight items. This works best if you set your Terminal window to a | |
37 darkish background and light letters. Some middle-grey background (for | |
38 instance (r,g,b)=(168,168,168)) with black letters also works nicely. | |
39 | |
40 | |
41 2. Compiling Vim *haiku-compiling* | |
42 | |
43 Vim can be compiled using the standard configure/make approach. Running | |
44 ./configure without any arguments or passing --enable-gui=haiku, will compile | |
45 vim with the Haiku GUI support. Run ./configure --help , to find out other | |
46 features you can enable/disable. | |
47 | |
19721 | 48 Haiku uses "ncurses6" as its terminal library, therefore you need to have |
49 "ncurses6_devel" package installed from HaikuDepot in order to configure | |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
50 the Haiku build. Just append "--with-tlib=ncurses6" to ./configure command |
19721 | 51 |
19526 | 52 Now you should use "make" to compile Vim, then "make install" to install it. |
19721 | 53 For seamless integration into Haiku, the GUI-less vim binary should be |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
54 additionally installed over the GUI version. Typical build commands are: |
19526 | 55 |
56 ./configure --prefix=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY` \ | |
57 --datarootdir=`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY` \ | |
58 --mandir=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY`/documentation/man \ | |
59 make clean | |
60 make install | |
61 | |
62 ./configure --prefix=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY` \ | |
63 --datarootdir=`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY` \ | |
64 --mandir=`finddir B_SYSTEM_NONPACKAGED_DIRECTORY`/documentation/man \ | |
65 --disable-gui | |
66 make clean | |
67 make install | |
68 | |
69 | |
70 3. The Haiku GUI *haiku-gui* | |
71 | |
72 Normally Vim starts with the GUI if you start it as gvim or vim -g. The vim | |
73 version with GUI tries to determine if it was started from the Tracker instead | |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
74 of the Terminal, and if so, uses the GUI anyway. However, the current detection |
19526 | 75 scheme is fooled if you use the command "vim - </dev/null". |
76 | |
77 Stuff that does not work yet: | |
78 | |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
79 - Mouse up events are not generated when outside the window. You can notice |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
80 this when selecting text and moving the cursor outside the window, then |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
81 letting go of the mouse button. Another way is when you drag the scrollbar |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
82 and do the same thing. Because Vim still thinks you are still playing with |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
83 the scrollbar it won't change it itself. There is a workaround which kicks |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
84 in when the window is activated or deactivated (so it works best with focus- |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
85 follows-mouse turned on). |
19813 | 86 - The cursor does not flash. |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
87 - Built-in terminal is not available in GUI, and does not work reliably on |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
88 console version as well; e.g. it is not possible to exit using the 'exit' |
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
89 command. If you need to use it, enable at your own risk. |
19526 | 90 |
91 | |
92 4. The $VIM directory *haiku-vimdir* | |
93 | |
19968 | 94 $VIM is the symbolic name for the place where Vim's support files are stored. |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
95 The default value for $VIM is set at compile time and can be determined with: |
19526 | 96 |
97 :version | |
98 | |
19721 | 99 The normal value is /boot/system/data/vim for Haikuports version, |
100 /boot/system/non-packaged/data/vim for manual builds. If you don't like it | |
101 you can set the VIM environment variable to override this, or set 'helpfile' | |
102 in your .vimrc: > | |
19526 | 103 |
104 :if version >= 500 | |
105 : set helpfile=~/vim/runtime/doc/help.txt | |
106 : syntax on | |
107 :endif | |
108 | |
109 | |
110 5. The $USER_SETTINGS_DIR directory *haiku-user-settings-dir* | |
111 | |
112 $USER_SETTINGS_DIR is the symbolic name for the place where Haiku | |
113 configuration and settings files are stored. | |
114 | |
115 The normal value is /boot/home/config/settings. | |
116 | |
117 | |
118 6. Drag & Drop *haiku-dragndrop* | |
119 | |
120 You can drop files and directories on either the Vim icon (starts a new Vim | |
121 session, unless you use the File Types application to set Vim to be "Single | |
122 Launch") or on the Vim window (starts editing the files). Dropping a folder | |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
123 sets Vim's current working directory |:cd| |:pwd|. If you drop files or |
19526 | 124 folders with either SHIFT key pressed, Vim changes directory to the folder |
125 that contains the first item dropped. When starting Vim, there is no need to | |
126 press shift: Vim behaves as if you do. | |
127 | |
128 Files dropped set the current argument list. |argument-list| | |
129 | |
130 | |
131 7. Single Launch vs. Multiple Launch *haiku-launch* | |
132 | |
133 As distributed Vim's Application Flags (as seen in the FileTypes preference) | |
134 are set to Multiple Launch. If you prefer, you can set them to Single Launch | |
135 instead. Attempts to start a second copy of Vim will cause the first Vim to | |
136 open the files instead. This works from the Tracker but also from the command | |
137 line. In the latter case, non-file (option) arguments are not supported. | |
138 Another drawback of the Single Launch is silent ignore of "Open With ..." | |
139 requests by vim instance that running as non-GUI application even GUI support | |
140 was compiled in. Vim instance running with GUI has no such problems. | |
141 | |
142 NB: Only the GUI version has a BApplication (and hence Application Flags). | |
143 This section does not apply to the GUI-less version, should you compile one. | |
144 | |
145 | |
146 8. Fonts *haiku-fonts* | |
147 | |
148 Set fonts with > | |
149 | |
150 :set guifont=DejaVu_Sans_Mono/Book/12 | |
151 | |
152 where the first part is the font family, the second part the style, and the | |
153 third part the size. You can use underscores instead of spaces in family and | |
154 style. | |
155 | |
156 Best results are obtained with monospaced fonts. Vim attempts to use all | |
157 fonts in B_FIXED_SPACING mode but apparently this does not work for | |
158 proportional fonts (despite what the BeBook says). | |
159 | |
160 To verify which encodings are supported by the current font give the > | |
161 | |
162 :digraphs | |
163 | |
164 command, which lists a bunch of characters with their ISO Latin 1 encoding. | |
165 If, for instance, there are "box" characters among them, or the last character | |
166 isn't a dotted-y, then for this font the encoding does not work. | |
167 | |
168 If the font you specify is unavailable, you get the system fixed font. | |
169 | |
20223
57a69af99e48
patch 8.2.0667: cannot install Haiku version from source
Bram Moolenaar <Bram@vim.org>
parents:
19968
diff
changeset
|
170 GUI Font Selection Dialog is available at giving the: |
19526 | 171 |
172 :set guifont=* | |
173 | |
174 command. | |
175 | |
176 | |
177 9. The meta key modifier *haiku-meta* | |
178 | |
179 The META key modifier is obtained by the left or right OPTION keys. This is | |
180 because the ALT (aka COMMAND) keys are not passed to applications. | |
181 | |
182 | |
183 10. Mouse key mappings *haiku-mouse* | |
184 | |
185 Vim calls the various mouse buttons LeftMouse, MiddleMouse and RightMouse. If | |
186 you use the default Mouse preference settings these names indeed correspond to | |
187 reality. Vim uses this mapping: | |
188 | |
189 Button 1 -> LeftMouse, | |
190 Button 2 -> RightMouse, | |
191 Button 3 -> MiddleMouse. | |
192 | |
193 If your mouse has fewer than 3 buttons you can provide your own mapping from | |
194 mouse clicks with modifier(s) to other mouse buttons. See the file | |
195 $VIM/macros/swapmous.vim for an example. |gui-mouse-mapping| | |
196 | |
197 | |
198 11. Color names *haiku-colors* | |
199 | |
200 Vim has a number of color names built-in. Additional names are read from the | |
201 file $VIMRUNTIME/rgb.txt, if present. This file is basically the color | |
202 database from X. Names used from this file are cached for efficiency. | |
203 | |
204 | |
205 12. GUI Toolbar Images *haiku-toolbar-images* | |
206 | |
207 Alternative set of toolbar images should be the PNG image of any height you | |
208 like. Image width is calculated to contain at least 32 buttons in one-row | |
209 cells. | |
210 The image should be stored under the name $VIRUNTIME/bitmaps/builtin-tools.png | |
211 More info about the buttons assignment are at |builtin-tools|. | |
212 | |
213 | |
214 13. Credits *haiku-support-credits* | |
215 | |
216 Haiku port is based on work done for BeOS version by many people | |
217 - BeBox GUI support Copyright 1998 by Olaf Seibert; | |
218 - Ported to R4 by Richard Offer <richard@whitequeen.com> Jul 99; | |
219 - Those who contributed, not listed above but not forgotten; | |
220 - Haiku support by Siarzhuk Zharski <imker@gmx.li> Apr-Mai 2009. | |
221 | |
222 All the changes and patches released under vim-license. | |
223 | |
224 Thank you, all! | |
225 | |
226 | |
20241 | 227 14. Bugs & to-do *haiku-bugs* |
19813 | 228 |
229 The port is under development now and far away from the perfect state. For bug | |
230 reports, patches and wishes, please use the Vim mailing list or Vim Github | |
231 repository. | |
232 | |
233 Mailing list: https://www.vim.org/maillist.php | |
234 Vim Github repository: https://github.com/vim/vim | |
19526 | 235 |
236 | |
237 vim:tw=78:ts=8:ft=help:norl: |