Compile Vim 7.3 with +clientserver feature on Mac OS X

前端 未结 6 831
天命终不由人
天命终不由人 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:18

    I got it to work by adding --enable-gui=gtk2

    ./configure --enable-rubyinterp --enable-pythoninterp --with-features=huge --enable-gui=gtk2
    

    Then run from the console:

    $ vim --servername FOOBAR_SERVER
    

    From another console:

    $ vim --serverlist
    FOOBAR_SERVER
    

    Or from within any Vim instance:

    :echo serverlist()
    FOOBAR_SERVER
    

    Note that X11.app will also boot up as it is necessary for the Vim server to function.

提交回复
热议问题