Problem with Vim's Ruby plugin

后端 未结 6 1057
一整个雨季
一整个雨季 2021-02-13 18:34

I have just installed Vim and when ever I go to open in ruby file I get these errors:

Error detected while processing C:\\Program files (x86)\\Vim\\vimfiles\\ftp         


        
6条回答
  •  被撕碎了的回忆
    2021-02-13 19:18

    I opened the file "C:...\vim73\ftplugin\ruby.vim" and right before line 73 or so, where the code reads:

    if !exists("s:ruby_path")
    

    I added:

    let s:ruby_path = 'C:\ruby192\bin'
    

    So far vim seems happier about editing ruby files. Note I installed my ruby in the "C:" directory instead of "Program Files" to get a better pathname to ruby.exe.

    My version of ruby.vim is dated 2010 Mar 15.

提交回复
热议问题