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!
精彩评论