https://github.com/tpope/vim-rbenv
rbenv.vim: Minimal rbenv support
https://github.com/tpope/vim-rbenv
Last synced: over 1 year ago
JSON representation
rbenv.vim: Minimal rbenv support
- Host: GitHub
- URL: https://github.com/tpope/vim-rbenv
- Owner: tpope
- Created: 2013-02-24T04:09:50.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T00:55:20.000Z (over 6 years ago)
- Last Synced: 2025-01-08T16:27:53.485Z (over 1 year ago)
- Language: Vim script
- Homepage: http://www.vim.org/scripts/script.php?script_id=4455
- Size: 8.79 KB
- Stars: 67
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# rbenv.vim
This simple plugin provides a `:Rbenv` command that wraps `!rbenv` with tab
complete. It also tells recent versions of [vim-ruby][] where your Ruby
installs are located, so that it can set `'path'` and [`'tags'`][rbenv-ctags]
in your Ruby buffers to reflect the nearest `.ruby-version` file.
Bonus: [projectionist.vim][] support for rbenv plugins.
[vim-ruby]: https://github.com/vim-ruby/vim-ruby
[rbenv-ctags]: https://github.com/tpope/rbenv-ctags
[projectionist.vim]: https://github.com/tpope/vim-projectionist
## Installation
If you don't have a preferred installation method, I recommend
installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
then simply copy and paste:
cd ~/.vim/bundle
git clone git://github.com/tpope/vim-rbenv.git
## FAQ
> My Vim insists on using the system Ruby.
You're using zsh on OS X, aren't you? Here are some things to try:
* Move `/etc/zshenv` to `/etc/zprofile`, if you're on Yosemite or earlier.
* Set your `PATH` in `~/.zprofile` instead of `~/.zshrc` or `~/.zshenv`.
## Self-Promotion
Like rbenv.vim? Follow the repository on
[GitHub](https://github.com/tpope/vim-rbenv) and vote for it on
[vim.org](http://www.vim.org/scripts/script.php?script_id=4455). And if
you're feeling especially charitable, follow [tpope](http://tpo.pe/) on
[Twitter](http://twitter.com/tpope) and
[GitHub](https://github.com/tpope).
## License
Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
See `:help license`.