I have installed yadr dotfiles, a set of vim, ruby, etc plugins.
I have the following line of Ruby code in a file foo.rb:
foo: bar
Note I used the ruby 1.9.3 syntax for symbol assignment/definition.
When I start macvim from command line using mvim foo.rb and save that file, everything works fine.
However, when I open macvim using open -a macvim and navigate to and open foo.rb, when I try to save the file I get a ruby-vim syntax error on foo: bar. When I change it to :foo => bar I don't get syntax errors.
- Using
open -a macvimto open macvim, and then entering:!ruby -vprintsruby 1.8.7 - Using
mvim .to open macvim, and then entering:!ruby -vprintsruby 1.9.3
Depending on how I open macvim, I get a different version of Ruby. How do I ensure that macvim always uses ruby 1.9.3 to evaluate my ruby code?
Thanks

:!echo $PATHshow in each? - kejadlenmvim fileuses your shell's environment whileopen -a macvim filesuses your system's environment. But why would you use it?mvimis infinitely better. - romainl