1- *os_mac.txt* For Vim version 8.0. Last change: 2006 Apr 30
1+ *os_mac.txt* For Vim version 8.0. Last change: 2017 Apr 28
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -18,6 +18,7 @@ NOTE: This file is a bit outdated. You might find more useful info here:
18185. Known Lack | mac-lack |
19196. Mac Bug Report | mac-bug |
20207. Compiling Vim | mac-compile |
21+ 8. The darwin feature | mac-darwin-feature |
2122
2223There was a Mac port for version 3.0 of Vim. Here are the first few lines
2324from the old file:
@@ -126,5 +127,55 @@ send a message to the current MacVim maintainers:
126127
127128See the file "src/INSTALLmac.txt" that comes with the source files.
128129
130+ ==============================================================================
131+ 8. The Darwin Feature *mac-darwin-feature*
132+
133+ If you have a Mac that isn't very old, you will be running OS X, also called
134+ Darwin. The last pre-Darwin OS was Mac OS 9. The darwin feature makes Vim
135+ use Darwin-specific properties.
136+
137+ What is accomplished with this feature is two-fold:
138+
139+ - Make Vim interoperable with the system clipboard.
140+ - Incorporate into Vim a converter module that bridges the gap between some
141+ character encodings specific to the platform and those known to Vim.
142+
143+ Needless to say, both are not to be missed for any decent text editor to work
144+ nicely with other applications running on the same desktop environment.
145+
146+ As Vim is not an application dedicated only to macOS, we need an extra feature
147+ to add in order for it to offer the same user experience that our users on
148+ other platforms enjoy to people on macOS.
149+
150+ For brevity, the feature is referred to as "darwin" to signify it one of the
151+ Vim features that are specific to that particular platform.
152+
153+ The feature is a configuration option. Accordingly, whether it is enabled or
154+ not is determined at build time; once it is selected to be enabled, it is
155+ compiled in and hence cannot be disabled at runtime.
156+
157+ The feature is enabled by default. For most macOS users, that should be
158+ sufficient unless they have specific needs mentioned briefly below.
159+
160+ If you want to disable it, pass `-- disable- darwin` to the configure script: >
161+
162+ ./configure --disable-darwin <other options>
163+
164+ and then run `make ` to build Vim. The order of the options doesn't matter.
165+
166+ To make sure at runtime whether or not the darwin feature is compiled in, you
167+ can use `has (' macunix' )` which returns 1 if the feature is compiled in; 0
168+ otherwise.
169+
170+ Notable use cases where `-- disable- darwin` is turned out to be useful are:
171+
172+ - When you want to use | x11-selection | instead of the system clipboard.
173+ - When you want to use | x11-clientserver | .
174+
175+ Since both have to make use of X11 inter-client communication for them to work
176+ properly, and since the communication mechanism can come into conflict with
177+ the system clipboard, the darwin feature should be disabled to prevent Vim
178+ from hanging at runtime.
179+
129180
130181 vim:tw=78:ts=8:ft=help:norl:
0 commit comments