Ⅰ. 插件描述
Total-commander-like file manager for VIMⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lpenz/vimcommander'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lpenz/vimcommander'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lpenz/vimcommander'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lpenz/vimcommander
Ⅳ. 文档说明
vimcommander
This is an adaptation of opsplorer
(vimscript #362),
intended to be more like the Total Commander file
explorer.
Installation
- Drop vimcommander.vim in ~/.vim/plugin OR add this repository to your
plugin manager
(Vundle, for example)
- Add a map to VimCommanderToggle() in you .vimrc, like this:
noremap <silent> <F11> :cal VimCommanderToggle()<CR>Usage
vimcommander opens two panels of file explorers on the top half of the vim screen.
Targets for moving and copying defaults to the other panel, like totalcmd.
TAB switches between panels.
vimcommander keys are mostly totalcommander's:
- F3 - view
- F4 - edit
- F5 - copy
- F6 - move
- F7 - create dir
- F8 - del
- Others: C-U, C-Left/C-Right, C-R, BS, DEL, C-H, etc.
Selection of files/dirs also works: INS, +, -.
Then copy/move/del selected files.
Tested on Linux. I have reports that vimcommander doesn't work on Windows.