Gentoo Archives: gentoo-alt

From: yegle <cnyegle@×××××.com>
To: "gentoo-alt@l.g.o" <gentoo-alt@l.g.o>
Subject: [gentoo-alt] Re: OS X prefix: vim has("mac") and has("macunix") return false?
Date: Sat, 10 Oct 2015 04:52:38
Message-Id: CAFL5w3XE2+7c3Oxhic_kAt=_Ux_rLEg-Z00MBf-nX=cZ=bXJ_Q@mail.gmail.com
In Reply to: [gentoo-alt] Re: OS X prefix: vim has("mac") and has("macunix") return false? by yegle
1 Aha, found it.
2
3 There's a --disable-darwin in the ebuild file, and the comment said
4 this was for https://bugs.gentoo.org/show_bug.cgi?id=19115 which has
5 been fixed long ago.
6
7 Any devs here who can help correct this? Thank you!
8
9 On Fri, Oct 9, 2015 at 9:37 PM, yegle <cnyegle@×××××.com> wrote:
10 > MacVim actually has a smaller version number compare to the prefix
11 > one, so I don't think this is some bug that been fixed in newer vim
12 > versino.
13 >
14 > Prefix: 7.4.827
15 > OS X: 7.3
16 > MacVim: 7.4.769
17 >
18 > On Fri, Oct 9, 2015 at 9:31 PM, yegle <cnyegle@×××××.com> wrote:
19 >> I was trying to disable a vundle in OS X by adding the following snippet:
20 >>
21 >> if !has("mac")
22 >> Plugin XXXX
23 >> endif
24 >>
25 >> But surprisingly it doesn't work. And with some test I found
26 >> has("mac") and has("macunix") both returned false in vim installed via
27 >> Prefix and the one comes with OS X.
28 >>
29 >> $ $HOME/.gentoo/usr/bin/vim +'redir! > /dev/stdout' '+echo has("mac")
30 >> || has("macunix")' +qall
31 >> 0
32 >> $ /usr/bin/vim +'redir! > /dev/stdout' '+echo has("mac") ||
33 >> has("macunix")' +qall
34 >> 0
35 >>
36 >> But strangely, MacVim (https://github.com/macvim-dev/macvim) correctly
37 >> recognized this feature test:
38 >> $ /Applications/MacVim.app/Contents/MacOS/Vim +'redir! >/dev/stdout'
39 >> +'echo has("mac")' +qall
40 >> 1
41 >>
42 >> Is there a way to make the vim in prefix behave the same as MacVim?
43 >>
44 >> Thank you!
45 >>
46 >>
47 >> --
48 >> yegle
49 >> http://about.me/yegle
50 >
51 >
52 >
53 > --
54 > yegle
55 > http://about.me/yegle
56
57
58
59 --
60 yegle
61 http://about.me/yegle

Replies