开发者

Error opening ruby file in gvim

开发者 https://www.devze.com 2023-03-24 04:06 出处:网络
When I open Ruby files in gvim I get following error: Error detected while processing C:\\Program Files\\Vim\\vim73\\ftplugin\\ruby.vim:

When I open Ruby files in gvim I get following error:

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

There isn't any ruby.vim I can find under C:\Program Files\Vim\vim73\ftplugin\ either开发者_如何学Go. Does anyone know about this problem.

Thanks


You can add s:ruby_path in $VIMRUNTIME/ftplugin/ruby.vim, for example:

let s:ruby_path="d:/ruby/bin"

So, it would be right!

0

精彩评论

暂无评论...
验证码 换一张
取 消