tpope / vim-bundler

bundler.vim: Lightweight support for Ruby's Bundler
https://www.vim.org/scripts/script.php?script_id=4280
404 stars 29 forks source link

Bundle doesn't find installed gem if vim has not be started by a shell inside the project directory #16

Closed duhanebel closed 11 years ago

duhanebel commented 11 years ago

By using RVM, GEM_PATH is changed only when cd-ing into the project directory. When using a vim instance opened from outside that project directory, GEM_PATH won't match the project's one.

The only way I see to fix this is to somehow add support for rvm, recognizing the presence of .rvmrc files.

graywh commented 11 years ago

https://github.com/tpope/vim-rvm

tpope commented 11 years ago

Yeah, I bet that example autocommand will make things work. I haven't tried though.

Other than that, RVM is pretty antagonistic towards introspection, so I don't think you will see native support for it. (Compare with rbenv, which works out of the box without doing anything special.)