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选项重建vim和vim运行时软件包:
$ 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.
还要将python , python2和ruby添加到package_vim()函数内的依赖列表。 然后保存并关闭PKGBUILD文件。
翻译自: https://www.pybloggers.com/2012/10/recompile-vim-with-pythonruby-support-on-arch-linux/
arch vim配置