vim-ctrlp-autoignore


Ⅰ. 插件描述

Adds support to CtrlP for custom per-project ignore patterns.

Ⅱ. 基本信息

创建日期:  2015-01-24
使用用户:  5
Github星:  3
插件作者:  Ludovic Chabant

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'ludovicchabant/vim-ctrlp-autoignore'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'ludovicchabant/vim-ctrlp-autoignore'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'ludovicchabant/vim-ctrlp-autoignore'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/ludovicchabant/vim-ctrlp-autoignore

Ⅳ. 文档说明

# CtrlP Auto-Ignore

This CtrlP extension adds support for per-project ignore patterns, as defined by
a .ctrlpignore file located at the root of the the project. It's like
.gitignore or .hgignore for CtrlP.

Install it by using you preferred Vim plugin manager (Pathogen or Vundle are
recommended), and adding this to your vimrc:

let g:ctrlp_extensions = ['autoignore']

Of course, add 'autoignore' to an existing g:ctrlp_extensions if
you're already using some other CtrlP extensions.

Next, add a .ctrlpignore file at the root of one of your project, and specify
file and directory patterns to ignore. Don't forget to hit <F5> next time you
open CtrlP to force it to refresh its search results.

Use :help ctrlp-autoignore for more information.

添加新评论