Use specific rvm ruby and gemset #30

Closed
barraponto opened this Issue Jan 15, 2013 · 4 comments

Projects

None yet

2 participants

@barraponto

I'd like to let vim-preview use a specific ruby and gemset for previews, regardless of the loaded rvm in the shell session before opening vim. Is it possible?

@greyblake
Owner

It's not a scope of vim-preview but I you can do the next(it works for me):

# Create gemset for vim and install necessary staff
rvm gemset use 1.9.3@vim --create
gem install bluecloth github-markup RedCloth 

# Create aliases to use specific gemset with vim
# You probably want to move this in you ~/.bashrc file(or similar):
alias vim='rvm gemset use 1.9.3@vim && vim'
alias gvim='rvm gemset use 1.9.3@vim && gvim'

It should help. Thanks.

@greyblake
Owner

Probably it's better to create wrapper scripts for vim and gvim, since aliases change current gemset...

@barraponto

I guess I'll try autocmd and https://github.com/tpope/vim-rvm

@greyblake
Owner

Vim-rvm looks good. Thanks, I'll try it to.
Closing the ussue.

@greyblake greyblake closed this Jan 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment