Ⅰ. 插件描述
NERDtree + ack.vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tyok/nerdtree-ack'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tyok/nerdtree-ack'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tyok/nerdtree-ack'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tyok/nerdtree-ack
Ⅳ. 文档说明
# NERDtree + Ack.vim
This plugin add capability to search in folders via NERDtree. The search use ack.vim from the master branch (http://github.com/mileszs/ack.vim/tree/master).
This is ripped off from NERDTree & ack plugin by Tudor Barbu. It just doesn't fit my taste, so, yeah.
How to Install
- Install ack.vim first from http://github.com/mileszs/ack.vim/tree/master. Or you can use my branch whose behavior is IMHO more NERDtree-friendly.
- Copy the plugin file to your
.vim/plugindirectory, or install via pathogen/vundle
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 ack.vim
Uses ack.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 ack.vim buffer behavior