在Mac OS X上编译Vim 7.3 with + clientserver功能 [英] Compile Vim 7.3 with +clientserver feature on Mac OS X

查看:331
本文介绍了在Mac OS X上编译Vim 7.3 with + clientserver功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Mac OS X上的 clientserver 功能编译Vim?我有 vim-7.3.tar.bz2来源



我知道MacVim有这个内置,但它只有在GUI运行时工作。我想使用CLI版本,因为我的工作是那么容易与CLI(我可以轻松地切换到终端),例如)。



我编译Vim 7.3与以下 ./ configure 选项

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

Unix& Linux ,但它只负责Ubuntu解决方案。此外,由于我启用了巨大功能集,我应该期望 + clientserver ,根据 vimdoc


因此,如果一个特征被标记为N,它被包括在Vim的正常,大和巨大版本中。






服务器功能仅适用于GUI MacVim。要重现此:

  $ Applications / MacVim.app / Contents / MacOS / Vim --servername VIM 



在另一个控制台中:

  $ vim --serverlist#不输出任何内容

MacVim,

  $ vim --serverlist 
VIM1

但我的要求是在CLI Vim中工作。

解决方案

我得到它的工作,添加 - enable-gui = gtk2

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

然后从控制台运行:

  $ vim --servername FOOBAR_SERVER 

从另一个控制台:

  $ vim --serverlist 
FOOBAR_SERVER

或从任何Vim实例中:

 :echo serverlist()
FOOBAR_SERVER

请注意,X11.app也将启动,因为它是Vim服务器运行所必需的。


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, but it only works when the GUI is running. I want to work with a CLI version, as my work is so much easier with the CLI (I can switch to the Terminal with ease, for example).

I compiled Vim 7.3 with the following ./configure options

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

I have looked at this question on Unix & Linux, but it only takes care of the Ubuntu solution. Also, since I enabled the huge feature set, I should expect +clientserver, according to the vimdoc:

Thus if a feature is marked with "N", it is included in the normal, big and huge versions of Vim.

Update:

The server feature only works with GUI MacVim. To reproduce this:

$ Applications/MacVim.app/Contents/MacOS/Vim --servername VIM

The in another console:

$ vim --serverlist # does not output anything

Whereas if I'll fire up the GUI MacVim,

$ vim --serverlist
VIM1

But my requirement is to work in CLI Vim.

解决方案

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.

这篇关于在Mac OS X上编译Vim 7.3 with + clientserver功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆