Home

Awesome

CtrlP C matching extension

This is a ctrlp.vim extension which can be used to get different matching algorithm, written in C language with a small portion of Python (only to access C module).

This extension uses an adapted version of CommandT matching, big thanks to @wincent!

Advantages

Drawbacks

There are no real drawbacks, but I need to point out some things that may not work as you expected:

Installation

  1. Get extension files with your favorite method. Example for Vundle:

    Plugin 'JazzCore/ctrlp-cmatcher'
    
  2. Compile C extension. If you are getting any errors on this stage you can try the manual installation guide located here.

  1. Edit your .vimrc:

Add following line:

let g:ctrlp_match_func = {'match' : 'matcher#cmatch' }
  1. All done!