Ⅰ. 插件描述
Custom NERDTreeIgnore settings per project.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dsimidzija/vim-nerdtree-ignore'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dsimidzija/vim-nerdtree-ignore'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dsimidzija/vim-nerdtree-ignore'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dsimidzija/vim-nerdtree-ignore
Ⅳ. 文档说明
# Custom NERDTreeIgnore settings per project
Features
This plugin enables you to set a custom NERDTreeIgnore filter for each
- This is done by creating a
.nerdtreeignorefile containing the regex - commonly used by
NERDTreeIgnore. When you move to a directory
containing such a file, it will be loaded and used, until you change the root
of NERDTree to a directory that does not contain the .nerdtreeignore file,
in which case the default value is restored.
An example of use would be to hide binary files, temporary files or *.js files
in your coffeescript project.
Note that NERDTree > 4.2.0 has added NERDTreeAddPathFilter function which
enables you to do the filtering in your .vimrc, but I think this plugin is
simpler and easier to use, since .nerdtreeignore can be added to source
control and shared by everyone.
Installation
- Install [NERDTree][] (obviously)
Install the plugin:
**Pathogen**:cd ~/.vim/bundle
git clone https://github.com/dsimidzija/vim-nerdtree-ignore.git**Vundle**:Bundle 'dsimidzija/vim-nerdtree-ignore'
**Janus**:cd ~/.janus
git clone https://github.com/dsimidzija/vim-nerdtree-ignore.git- ???
- Profit!
Oh yeah, and
- create
.nerdtreeignorewherever you need one. Example:
^debug$[[dir]]
^tmp$[[dir]]
\.sw[po]$
\.log$For more info, take a look at :h NERDTreeIgnore.
Commands and Mappings
None yet.
Configuration
None yet.
Known Issues
When you go up from your current root directory, NERDTree does not trigger
the NERDTreeNewRoot event, so you'll need to position your cursor on your
new root and press C to trigger it. This seems to be by design.
Credits
Path utility functions graciously stolen from [vim-misc][], all credit
for those goes to Peter Odding.
License
MIT License. Copyright (c) Dusko Simidzija.