Ⅰ. 插件描述
A ranger-like system/cloud storage explorer for Vim, bringing together the best of Vim, ranger, and rclone.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ipod825/vim-netranger'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ipod825/vim-netranger'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ipod825/vim-netranger'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ipod825/vim-netranger
Ⅳ. 文档说明
vim-netranger
New: preview window is on now by default. To turn it off, set g:NETRPreviewDefaultOn=v:false.
Vim-netranger is a ranger-like system/cloud storage explorer for Vim/Neovim. It brings together the best of Vim, ranger, and rclone:
Against Vim (netrw):
- Fancy rendering
- Supports various cloud storages (via rclone)
Against ranger:
- Native Vim key-binding rather than just mimicking Vim
Against rclone
- Display/modify remote content without typing commands in terminal
Installation
Using vim-plug
Plug 'ipod825/vim-netranger'__Note__: Other explorer plugins (e.g. NERDTree) might prohibit vim-netranger. You must disable them to make vim-netranger work.
Requirements
vim&neovimecho has('python3')should output 1echo has('virtualedit')should output 1
rclone: v1.4.0(v1.3.9) or newer (1.4.0 not yet published, see Known Issues).rcloneis needed if you use remote editing features. However, it will be installed automatically on the first time runningNETRemoteListcommand.
Usage
:help vim-netranger-usageRemote storage
:help vim-netranger-rcloneCustomization
:help vim-netranger-customization-mapping
:help vim-netranger-customization-optionAdvanced Key mappings:
:help vim-netranger-functionsColors
:help vim-netranger-colorsPython Api
:help vim-netranger-apiKnown Issues
- When remote directory is empty, it will not be copied to remote. It is an rclone [bug] (https://github.com/ncw/rclone/issues/1837), which is expected to be fixed in next release.
- In some cases when
listcharsis set,vim-netrangerbuffer does not display correctly. For possible solutions, see the comment in this issue.
Contributing
Pull request is welcomed. However, please run tests before sending pull request.
Testing
$ cd test
$ bash test.sh # test with visualization, xterm required
$ python test.py # test without visualization 