Ⅰ. 插件描述
NERDtree + ag.vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'taiansu/nerdtree-ag'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'taiansu/nerdtree-ag'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'taiansu/nerdtree-ag'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/taiansu/nerdtree-ag
Ⅳ. 文档说明
# NERDtree + Ag.vim
This plugin add capability to search in folders via NERDtree. The search use ag.vim.
The code is almost a copypaste from Mohammad Satrio's nerdtree-ack. But use the silver searcher instead of Ack.
Install
- Install ag.vim
- Install this plugin via your package manager (pathogen/vundle/VAM/plug-vim)
or just put the plugin file in your
.vim/plugindirectory
How to Use
- Open NERDtree
- Point to a directory
- Press
ms - Enter search term (e.g.
control\ panel -i) - Profit!
Features
- Doesn't change current open buffers! This feature is what necessitate the use of latest ag.vim
Uses ag.vim syntax:
- Use
\to write a space (e.g.control\ panel) - Or enclose the term in quotes (e.g.
"control panel") - The default behavior is case sensitive. Use
-iparams for case insensitive (e.g."control panel" -i)
- Use
- Uses ag.vim buffer behavior