1 |
MacVim actually has a smaller version number compare to the prefix |
2 |
one, so I don't think this is some bug that been fixed in newer vim |
3 |
versino. |
4 |
|
5 |
Prefix: 7.4.827 |
6 |
OS X: 7.3 |
7 |
MacVim: 7.4.769 |
8 |
|
9 |
On Fri, Oct 9, 2015 at 9:31 PM, yegle <cnyegle@×××××.com> wrote: |
10 |
> I was trying to disable a vundle in OS X by adding the following snippet: |
11 |
> |
12 |
> if !has("mac") |
13 |
> Plugin XXXX |
14 |
> endif |
15 |
> |
16 |
> But surprisingly it doesn't work. And with some test I found |
17 |
> has("mac") and has("macunix") both returned false in vim installed via |
18 |
> Prefix and the one comes with OS X. |
19 |
> |
20 |
> $ $HOME/.gentoo/usr/bin/vim +'redir! > /dev/stdout' '+echo has("mac") |
21 |
> || has("macunix")' +qall |
22 |
> 0 |
23 |
> $ /usr/bin/vim +'redir! > /dev/stdout' '+echo has("mac") || |
24 |
> has("macunix")' +qall |
25 |
> 0 |
26 |
> |
27 |
> But strangely, MacVim (https://github.com/macvim-dev/macvim) correctly |
28 |
> recognized this feature test: |
29 |
> $ /Applications/MacVim.app/Contents/MacOS/Vim +'redir! >/dev/stdout' |
30 |
> +'echo has("mac")' +qall |
31 |
> 1 |
32 |
> |
33 |
> Is there a way to make the vim in prefix behave the same as MacVim? |
34 |
> |
35 |
> Thank you! |
36 |
> |
37 |
> |
38 |
> -- |
39 |
> yegle |
40 |
> http://about.me/yegle |
41 |
|
42 |
|
43 |
|
44 |
-- |
45 |
yegle |
46 |
http://about.me/yegle |