Ⅰ. 插件描述
Let NERDTree works like VimFiler. L key open directory node, and H key close directory node(even the cursor is on the child node)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'flw-cn/vim-nerdtree-l-open-h-close'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'flw-cn/vim-nerdtree-l-open-h-close'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'flw-cn/vim-nerdtree-l-open-h-close'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/flw-cn/vim-nerdtree-l-open-h-close
Ⅳ. 文档说明
# vim-nerdtree-l-open-h-close
Let NERDTree works like VimFiler. That means:
lkey open directory node, andhkey close directory node(even while the cursor is on the child node).
Installation
To install this plugin just put the plugin files in your ~/.vim (Linux/macOS)
or ~/vimfiles (Windows).
Vundle
Plugin 'flw-cn/vim-nerdtree-l-open-h-close'vim-plug
Plug 'flw-cn/vim-nerdtree-l-open-h-close'Change key bindings
By default, l is the shortcut key to open directory node and h to
close directory node.
If you want to change the key, please add following lines into your vimrc:
let g:NERDTreeMapOpenDirNode = 'L'
let g:NERDTreeMapCloseDirNode = 'H'