nerdtree-ack


Ⅰ. 插件描述

NERDtree + ack.vim

Ⅱ. 基本信息

创建日期:  2012-01-13
使用用户:  94
Github星:  29
插件作者:  Mohammad Satrio

Ⅲ. 安装方法

使用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

  1. 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.
  2. Copy the plugin file to your .vim/plugin directory, or install via pathogen/vundle

How to Use

  1. Open NERDtree
  2. Point to a directory
  3. Press ms
  4. Enter search term (e.g. control\ panel -i)
  5. Profit!

Features

  1. Doesn't change current open buffers! This feature is what necessitate the use of latest ack.vim
  2. Uses ack.vim syntax:

    1. Use \ to write a space (e.g. control\ panel)
    2. Or enclose the term in quotes (e.g. "control panel")
    3. The default behavior is case sensitive. Use -i params for case insensitive (e.g. "control panel" -i)
  3. Uses ack.vim buffer behavior

添加新评论