博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
arch vim配置_在Arch Linux上使用Python / Ruby支持重新编译Vim
阅读量:2517 次
发布时间:2019-05-11

本文共 2521 字,大约阅读时间需要 8 分钟。

arch vim配置

Update 2014-08-21: The vim packages in Arch Linux have been reorganized: . The standard vim package should now contain Python support, so the

2014年8月21日更新:已对Arch Linux中的vim软件包进行了重组: : 。 标准的vim软件包现在应该包含Python支持,因此

For my , 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.

对于我的 ,我需要一个使用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 , a script to easily recompile single packages or even the whole system. Install it using yaourt (or manually if you prefer):

为了简化重新配置过程,我找到了 ,该脚本可以轻松地重新编译单个程序包甚至整个系统。 使用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文件。

翻译自:

arch vim配置

转载地址:http://aeqwd.baihongyu.com/

你可能感兴趣的文章
第一次作业
查看>>
“==”运算符与equals()
查看>>
sqlite3
查看>>
软件工程:黄金G点小游戏1.0
查看>>
如何使用Powershell脚本监控Exchange2010(一) 数据库Mount状态的监控
查看>>
leetcode 144. Binary Tree Preorder Traversal
查看>>
理解 LINUX 的处理器负载均值(翻译)
查看>>
Struts2 流程原理
查看>>
Exp5 msf实践
查看>>
ElasticSearch简要总览
查看>>
浏览器的工作原理
查看>>
2.4.6 计算机语言表示算法
查看>>
Android SDK简介-读书笔记(一)
查看>>
android 构建数据库SQLite
查看>>
单工、半双工和全双工的定义
查看>>
Hdu【线段树】基础题.cpp
查看>>
时钟系统
查看>>
BiTree
查看>>
5个基于HTML5的加载动画推荐
查看>>
水平权限漏洞的修复方案
查看>>