Compile Vim 7.3 with +clientserver feature on Mac OS X

前端 未结 6 822
天命终不由人
天命终不由人 2020-12-31 06:02

How do I compile Vim with the clientserver feature on Mac OS X? I have the vim-7.3.tar.bz2 source

I understand that MacVim has this built in, bu

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 06:31

    Using MacPorts:

    $ sudo port install vim +huge +gtk2
    

    In a new window:

    $ /opt/local/bin/vim --servername FOO
    

    And in another window:

    $ /opt/local/bin/vim --serverlist
    FOO
    

    Quick. Easy.

    EDIT

    The +gtk2 is required to make it work, +huge is not enough. Actually, I think that it should work without +gtk2 as long as you have +x11. Unfortunatelly I'm not on my Mac anymore so I can't try. The whole thing takes about 3 minutes so you could try it.

    ENDEDIT

提交回复
热议问题