当我在gvim中打开Ruby文件时,我收到以下错误:
Error detected while processing C:\Program Files\Vim\vim73\ftplugin\ruby.vim:
NoMethodError: undefined method `specifications' for "C:/Ruby192/lib/ruby/gems/1.9.1":String
E121: Undefined variable: s:ruby_path
E51: Invalid expression: s:ruby_path
我在C:\ Program Files \ Vim \ vim73 \ ftplugin \下找不到任何ruby.vim。有谁知道这个问题。
由于
答案 0 :(得分:3)
您可以在$ VIMRUNTIME / ftplugin / ruby.vim中添加 s:ruby_path ,例如:
let s:ruby_path="d:/ruby/bin"
所以,这是对的!