Cygwin:安装 vim 支持 ruby

Cygwin: Installing vim with ruby support

这里的大图是我在 cygwin 上使用 Vundle and trying to run command t

命令 t 文档说:

1. Vim compiled with Ruby support

You can check for Ruby support by launching Vim with the --version switch:

  vim --version

If "+ruby" appears in the version information then your version of Vim has
Ruby support.

Another way to check is to simply try using the :ruby command from within Vim
itself:

  :ruby 1

If your Vim lacks support you'll see an error message like this:

  E319: Sorry, the command is not available in this version

当我 运行 :ruby 1 时,我看到这个错误:

E448: Could not load library function rb_assoc_new
E266: Sorry, this command is disabled, the Ruby library could not be loaded.

令我惊讶的是,当我用谷歌搜索 rb_assoc_new 时,没有找到任何有用的结果。这是什么 ruby 包?当我检查版本时,我看到了这个:

$ vim --version | grep ruby
+diff            +menu            +ruby/dyn        +writebackup

+ruby/dyn+ruby 有显着差异吗?

另外:

$ ruby --version
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-cygwin]

Ruby 支持在 Cygwin ViM 中修复:vim-8.0.1486-1.

您还应该安装最新的 rubyruby-2.3.6
并且不要忘记为 command-t.

重建动态库

注意:您可以在 cygwin 邮件列表 here.

上找到讨论