New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use specific rvm ruby and gemset #30

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

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

This comment has been minimized.

Show comment
Hide comment
@greyblake

greyblake Jan 17, 2013

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.

Owner

greyblake commented Jan 17, 2013

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

This comment has been minimized.

Show comment
Hide comment
@greyblake

greyblake Jan 17, 2013

Owner

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

Owner

greyblake commented Jan 17, 2013

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

@barraponto

This comment has been minimized.

Show comment
Hide comment

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

@greyblake

This comment has been minimized.

Show comment
Hide comment
@greyblake

greyblake Jan 23, 2013

Owner

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

Owner

greyblake commented Jan 23, 2013

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