Bilal Wahla
Bilal Wahla

Reputation: 665

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. Does anyone know about this problem.

Thanks

Upvotes: 1

Views: 780

Answers (1)

leiming
leiming

Reputation: 494

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!

Upvotes: 3

Related Questions