开发者

Error opening ruby file in gvim

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜