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

Support for vendored gems? #28

Closed myitcv closed 11 years ago

myitcv commented 11 years ago

My ~/.bundle/config reads as follows:


---
BUNDLE_PATH: 'vendor/bundle'
BUNDLE_DISABLE_SHARED_GEMS: '1'

This contributes ~3 secs to the load time of a ruby file in a Bundler-enabled project.

Performance returns to 'normal' when this config is removed.

:set tags with the config in place also seems to suggest that vim-bundler doesn't support this disabling of shared gems (whether at a global or per project level)

$ bundle config
Settings are listed in order of priority. The top value will be used.

path
Set for the current user (/home/.../.bundle/config): "vendor/bundle"

disable_shared_gems
Set for your local app (/home/.../blah/.bundle/config): "1"
Set for the current user (/home/.../blah/.bundle/config): "1"

Am I missing something in my config for vim-bundler?

Thanks

tpope commented 11 years ago

Can you try removing all the single quotes ' from the config file and see if it works? If so, it's just a matter of tweaking a regex.

myitcv commented 11 years ago

That does indeed return things to 'normal'

@tpope - thanks. Your great vim work continues...