1
- *os_mac.txt* For Vim version 8.0 . Last change: 2006 Apr 30
1
+ *os_mac.txt* For Vim version 8.1 . Last change: 2018 Jan 21
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar et al.
@@ -12,11 +12,13 @@ NOTE: This file is a bit outdated. You might find more useful info here:
12
12
http://macvim.org/
13
13
14
14
1. Filename Convention | mac-filename |
15
- 2. .vimrc an .vim files | mac-vimfile |
16
- 3. FAQ | mac-faq |
17
- 4. Known Lack | mac-lack |
18
- 5. Mac Bug Report | mac-bug |
19
- 6. Compiling Vim | mac-compile |
15
+ 2. .vimrc and .vim files | mac-vimfile |
16
+ 3. Standard mappings | mac-standard-mappings |
17
+ 4. FAQ | mac-faq |
18
+ 5. Known Lack | mac-lack |
19
+ 6. Mac Bug Report | mac-bug |
20
+ 7. Compiling Vim | mac-compile |
21
+ 8. The darwin feature | mac-darwin-feature |
20
22
21
23
There was a Mac port for version 3.0 of Vim. Here are the first few lines
22
24
from the old file:
@@ -72,7 +74,18 @@ the |'nocompatible'| option is set, otherwise it will only handle mac format
72
74
files.
73
75
74
76
==============================================================================
75
- 3. Mac FAQ *mac-faq*
77
+ 3. Standard mappings *mac-standard-mappings*
78
+
79
+ The following mappings are available for cut/copy/paste from/to clipboard.
80
+
81
+ key Normal Visual Insert Description ~
82
+ Command-v "*P "-d"*P <C-R> * paste text *<D-v>*
83
+ Command-c "*y copy Visual text *<D-c>*
84
+ Command-x "*d cut Visual text *<D-x>*
85
+ Backspace "*d cut Visual text
86
+
87
+ ==============================================================================
88
+ 4. Mac FAQ *mac-faq*
76
89
77
90
On the internet: http://macvim.org/OSX/index.php#FAQ
78
91
@@ -95,13 +108,13 @@ A: The following trick works with most shells. Put it in your vimrc file.
95
108
let $PATH = matchstr(s:path, 'VIMPATH\zs.\{-}\ze\n')
96
109
97
110
==============================================================================
98
- 4 . Mac Lack *mac-lack*
111
+ 5 . Mac Lack *mac-lack*
99
112
100
113
In a terminal CTRL-^ needs to be entered as Shift-Control-6. CTRL-@ as
101
114
Shift-Control-2.
102
115
103
116
==============================================================================
104
- 5 . Mac Bug Report *mac-bug*
117
+ 6 . Mac Bug Report *mac-bug*
105
118
106
119
When reporting any Mac specific bug or feature change, please use the vim-mac
107
120
maillist | vim-mac | . However, you need to be subscribed. An alternative is to
@@ -110,9 +123,60 @@ send a message to the current MacVim maintainers:
110
123
111
124
112
125
==============================================================================
113
- 6 . Compiling Vim *mac-compile*
126
+ 7 . Compiling Vim *mac-compile*
114
127
115
128
See the file "src/INSTALLmac.txt" that comes with the source files.
116
129
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 (' osxdarwin' )` which returns 1 if the feature is compiled in; 0
168
+ otherwise. For backward compatibility, you can still use `macunix` instead of
169
+ `osxdarwin` .
170
+
171
+ Notable use cases where `-- disable- darwin` is turned out to be useful are:
172
+
173
+ - When you want to use | x11-selection | instead of the system clipboard.
174
+ - When you want to use | x11-clientserver | .
175
+
176
+ Since both have to make use of X11 inter-client communication for them to work
177
+ properly, and since the communication mechanism can come into conflict with
178
+ the system clipboard, the darwin feature should be disabled to prevent Vim
179
+ from hanging at runtime.
180
+
117
181
118
182
vim:tw=78:ts=8:noet:ft=help:norl:
0 commit comments