安装带有 ruby 支持的 vim (+ruby) [英] Installing vim with ruby support (+ruby)
问题描述
我正在尝试为 vim 安装 command-t,但我当前版本的 vim 没有 (+ruby) 标志.命令which ruby"显示安装了ruby.
I'm trying to get command-t installed for vim but my current version of vim doesn't have the (+ruby) flag. The command "which ruby" shows that ruby is installed.
我需要做什么才能在 vim 中激活 +ruby 标志?
What do I need to do in order to activate the +ruby flag in vim?
另外,+ruby 标志在技术上是什么意思?
Also, what does the +ruby flag technically mean?
推荐答案
一些包在 Ubuntu 上提供了 vim-ruby,例如 vim-nox.
Some package provides vim-ruby on Ubuntu, for example vim-nox.
简单地说:
sudo apt-get install vim-nox;
将使用 ruby 为您提供 vim,以及编译在 "支持使用 Perl、Python 编写脚本、Ruby 和 TCL,但没有 GUI."
will get you vim with ruby, as well as compiled in "support for scripting with Perl, Python, Ruby, and TCL but no GUI."
sudo apt-get install vim-rails
将安装vimscripts 的选择,使编辑 Ruby on Rails 应用程序变得非常容易." 但由于它依赖于 vim-full 和 vim-addon-manager,它还会安装 vim-gnome 版本的 GUI,即 "使用 GNOME2 GUI 编译的 vim 版本,支持使用 Perl、Python、Ruby 和 TCL 编写脚本."
will install a "selection of vimscripts that make editing Ruby on Rails applications extremely easy." but as it depends on vim-full and vim-addon-manager, it will also install the vim-gnome version of the GUI, that is "a version of vim compiled with a GNOME2 GUI and support for scripting with Perl, Python, Ruby, and TCL."
这篇关于安装带有 ruby 支持的 vim (+ruby)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!