Ⅰ. 插件描述
combine with vinegar, or plain netrw, for a delicious salad dressingⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'go2null/vim-oil'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'go2null/vim-oil'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'go2null/vim-oil'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/go2null/vim-oil
Ⅳ. 文档说明
INTRODUCTION
oil.vim: combine with vinegar, or plain netrw, for a delicious salad dressing.
Plugin to create a Netrw Explorer Project Drawer. It uses Netrw and compliments vim-vinegar.
It is created for those who like a Docked Explorer and for those new to Vim. It can even be useful to those who like the split-windows-explorer approach.
[project drawer] still has its place, particularly during the orientation phase with a new codebase.
- Drew Neil, Oil and vinegar Vimcast
This plugin is inspired by
- vim-vinegar, and
- the Oil and vinegar Vimcast
- my not finding one that uses Netrw to implement a project drawer, while still allowing the split window approach, i.e., oil AND vinegar.
Note: It is only tested on Vim 7.4, but should work on older versions too.
MAPPINGS
<Leader>e : explore. Set to OilWhisk by default.
COMMANDS
OilWhisk Cycles between Netrw windows and buffers.
OilShake Toggles display of the Netrw window.
SETTINGS
The following settings are all boolean; set them to any value to enable them.
g:loaded_oil Set before sourcing to disable plugin.
g:oil_right Display the drawer on the right, instead of the left.
g:oil_multi Allow more than one Netrw window. OilWhisk will cycle through each window.
g:oil_shake Set default mapping to OilShake to toggle the Netrw window.
g:oil_no_map Disable default key mapping (<Leader>e).
CONTRIBUTIONS
Contributions and pull requests are welcome.
LICENSE
GPL v3 or later