nerdtree-ag


Ⅰ. 插件描述

NERDtree + ag.vim

Ⅱ. 基本信息

创建日期:  2012-01-13
使用用户:  33
Github星:  17
插件作者:  Tai An Su

Ⅲ. 安装方法

使用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/plugin directory

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 ag.vim
  2. Uses ag.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 ag.vim buffer behavior

添加新评论