Skip to content
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
Closed

Use specific rvm ruby and gemset #30

barraponto opened this issue Jan 15, 2013 · 4 comments

Comments

@barraponto
Copy link

@barraponto barraponto commented Jan 15, 2013

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
Copy link
Owner

@greyblake 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
Copy link
Owner

@greyblake greyblake commented Jan 17, 2013

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

@barraponto
Copy link
Author

@barraponto barraponto commented Jan 18, 2013

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

@greyblake
Copy link
Owner

@greyblake 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.