2011-07-30 56 views
1

當我打開GVIM Ruby文件我得到以下錯誤:錯誤打開紅寶石文件中的gvim

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 

沒有任何ruby.vim我可以在C發現:\ Program Files文件\的Vim \ vim73 \ ftplugin \。有誰知道這個問題。

感謝

+0

聽起來像一個破碎的安裝。嘗試重新安裝vim。 – Ryanmt

+2

你在這裏試過解決方案嗎? http://stackoverflow.com/questions/6179808/vimrubynomethoderror-undefined-method-specifications/6254751#6254751 聽起來像一樣的問題.. – e3matheus

回答

3

您可以添加S:ruby_path在$ VIMRUNTIME /文件類型插件/ ruby​​.vim,例如:

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

所以,這將是正確的!

+0

謝謝。這工作。我有這個閃爍的錯誤運行了大約一年,從來沒有關心修復它。我現在正在修補vim,我決定解決這個問題,並且你的解決方案擺脫了它。 –