Ⅰ. 插件描述
Use the ranger file manager as a file chooser in VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'renyard/vim-rangerexplorer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'renyard/vim-rangerexplorer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'renyard/vim-rangerexplorer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/renyard/vim-rangerexplorer
Ⅳ. 文档说明
# Vim Ranger Explorer
Vim Ranger Explorer enables the ranger file manager to be used as a file chooser from within Vim.
This plugin is based on ranger's example code.
Installation
Install ranger
Ranger can often be installed from the appropriate package manager:
OS X (Home Brew):
$ brew install rangerUbuntu:
$ apt-get install rangerInstall Vim plugin
Vim Ranger Explorer can be installed with Vundle or
Pathogen in the normal way.
Vundle
Add the following line to your .vimrc and run :PluginInstall.
Plugin 'renyard/vim-ranger-explorer'Pathogen
Git clone the repo into your bundle directory:
$ git clone https://github.com/renyard/vim-ranger-explorer.git ~/.vim/bundle/vim-ranger-explorerUsage
Use the :RangerExplorer command to invoke ranger as a file picker in the current working directory. Rather than using this command directly, you'll probably want to create a key mapping. e.g. To bind Ctrl-O add the following line to your .vimrc:
noremap <C-o> :RangerExplorer<CR>