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
Note that instead of editing ruby.vim file you can just add
let g:ruby_path = ':C:\ruby192\bin'
in your _vimrc file (or equivalent for your platform). That way you won't need to keep re-editing ruby.vim when you update it.
_vimrc