rbenv.vim


Ⅰ. 插件描述

rbenv.vim: Minimal rbenv support

Ⅱ. 基本信息

创建日期:  2013-02-24
使用用户:  368
Github星:  61
插件作者:  Tim Pope

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tpope/rbenv-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tpope/rbenv-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tpope/rbenv-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tpope/vim-rbenv

Ⅳ. 文档说明

# rbenv.vim

This simple plugin provides a :Rbenv command that wraps !rbenv with tab

  1. It also tells recent versions of [vim-ruby][] where your Ruby
  2. are located, so that it can set 'path' and 'tags'

in your Ruby buffers to reflect the nearest .ruby-version file.

Bonus: [projectionist.vim][] support for rbenv plugins.

Installation

If you don't have a preferred installation method, I recommend
installing pathogen.vim, 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 and vote for it on
vim.org. And if
you're feeling especially charitable, follow tpope on
Twitter and
GitHub.

License

Copyright (c) Tim Pope. Distributed under the same terms as Vim itself.
See :help license.

添加新评论