Ⅰ. 插件描述
Launch ranger file chooser from VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'koreyconway/ranger-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'koreyconway/ranger-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'koreyconway/ranger-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/koreyconway/ranger.vim
Ⅳ. 文档说明
# ranger.vim #
This is a simple plugin to be able to load files using the ranger file chooser.
Limitations
This plugin currently only works in terminal Vim. If anyone makes it work in gvim/macvim then
pull requests would be much appreciated.
Installation
Installation is like with any other vim plugin.
Using a plugin manager is the easiest way.
Personally I use neobundle
Neobundle 'koreyconway/ranger.vim'
Configuration
This plugin has no configuration required.
It comes with no pre-defined key-mappings, letting it to the user
to decice what they want. A suggestion is given below.
nnoremap <leader>r :Ranger<cr>
Usage
:Ranger
Acknowledgements
Thanks to hut for his work on creating ranger.
The original code used in this plugin is taken from the [example in his repository]
(https://github.com/hut/ranger/blob/master/doc/examples/vim_file_chooser.vim).