Ⅰ. 插件描述
Make rbenv self awareⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tpope/rbenv-sentience'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tpope/rbenv-sentience'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tpope/rbenv-sentience'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tpope/rbenv-sentience
Ⅳ. 文档说明
# Make rbenv self aware
After a successful rbenv install, this plugin creates a .ruby-version file
inside the root of the installation directory, so that running Ruby inside
that directory uses the corresponding version.
Installation
With [ruby-build][] already installed as an [rbenv][] plugin:
git clone git://github.com/tpope/rbenv-sentience.git \
~/.rbenv/plugins/rbenv-sentience