arch vim配置_在Arch Linux上使用Python / Ruby支持重新编译Vim

arch vim配置

Update 2014-08-21: The vim packages in Arch Linux have been reorganized: https://www.archlinux.org/news/reorganization-of-vim-packages/. The standard vim package should now contain Python support, so the

2014年8月21日更新:已对Arch Linux中的vim软件包进行了重组: https : //www.archlinux.org/news/reorganization-of-vim-packages/ 。 标准的vim软件包现在应该包含Python支持,因此

For my vim configuration, I need a version of Vim that was built with Python and Ruby support. Unfortunately, the default version of Vim that is installed with pacman doesn’t support Python/Ruby.

对于我的vim配置 ,我需要一个使用Python和Ruby支持构建的Vim版本。 不幸的是,与pacman一起安装的Vim的默认版本不支持Python / Ruby。

The easiest way to solve this problem is to install the gvim package instead of vim (don’t worry, the gvim package also includes a vim binary). But this brings along a huge amount of dependencies that I didn’t want on my system, so there’s no way around a package recompilation.

解决此问题的最简单方法是安装gvim软件包而不是vim (不用担心, gvim软件包还包含vim二进制文件)。 但是,这带来了我系统上不想要的大量依赖关系,因此无法重新编译软件包。

To ease the reconfiguration-process I found pacbuilder, a script to easily recompile single packages or even the whole system. Install it using yaourt (or manually if you prefer):

为了简化重新配置过程,我找到了pacbuilder ,该脚本可以轻松地重新编译单个程序包甚至整个系统。 使用yaourt安装它(或根据需要手动安装):


$ yaourt -S pacbuilder-svn

Then rebuild the vim and vim-runtime packages with the –edit option:

然后使用–edit选项重建vimvim运行时软件包:


$ pacbuilder --install --edit vim vim-runtime

When the script asks you whether you want to edit the PKGBUILD file, answer with y. Then find the first line that looks like this:

当脚本询问您是否要编辑PKGBUILD文件时,请使用y进行回答。 然后找到第一行,如下所示:


./configure --prefix=/usr --localstatedir=/var/lib/vim 
  --with-features=big --with-compiledby=ArchLinux 
  --enable-gpm --enable-acl --with-x=no 
  --disable-gui --enable-multibyte --enable-cscope 
  --disable-netbeans --enable-perlinterp --disable-pythoninterp 
  --disable-python3interp --disable-rubyinterp --disable-luainterp

Edit the configure options to your likings. In my case, I changed the following things:

根据您的喜好编辑配置选项。 就我而言,我更改了以下内容:

  • –disable-pythoninterp–enable-pythoninterp
  • –disable-python3interp–enable-python3interp
  • –disable-rubyinterp–enable-rubyinterp
  • –with-compiledby=ArchLinux–with-compiledby=”Custom Build (http://s.dbrgn.ch/uqK6)”
  • –disable-pythoninterp⇒ –enable-pythoninterp
  • –disable-python3interp⇒ –enable-python3interp
  • –disable-rubyinterp⇒ –enable-rubyinterp
  • –with-compiledby = ArchLinux⇒ –with-compiledby =“自定义版本(http://s.dbrgn.ch/uqK6)”

Also add python, python2 and ruby to the depends list inside the package_vim() function. Then save and close the PKGBUILD file.

还要将pythonpython2ruby添加到package_vim()函数内的依赖列表。 然后保存并关闭PKGBUILD文件。

翻译自: https://www.pybloggers.com/2012/10/recompile-vim-with-pythonruby-support-on-arch-linux/

arch vim配置

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值