这里的大图是我使用Vundle并尝试在cygwin上运行command 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.
我很惊讶,当我用Google搜索rb_assoc_new
时,没有任何有用的信息。这是什么红宝石包?当我检查版本时,我看到了:
$ 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]
答案 0 :(得分:1)
在Cygwin ViM中修复了Ruby支持:vim-8.0.1486-1。
您还应该安装最新的ruby
:ruby-2.3.6,
并且不要忘记重建command-t的动态库。
注意:您可以在cygwin邮件列表here上找到讨论。