kien/ctrlp.vim — pull request #361 by JazzCore (2013-02-14 10:03:27+00:00)
Title: C matching extension

Hello. Presenting my work on C matching for ctrlp.vim. This is surely not for merging, i will rework this into separate ctrlp extension but i want to get discussion going and maybe get some bugreports.

Actually, this is a port of [Command-T](https://github.com/wincent/Command-T) C matching, but instead of Ruby i've used Python ( well, i know it better ).

To get this working on Linux ( It also works on Windows, will add instructions later ):

```bash
cd ~/.vim/bundle/ctrlp.vim/autoload/
sudo python setup.py install
```

Then add to your ``.vimrc``:

```vim
let g:ctrlp_match_func = { 'match' : 's:MatchItPy' }
```

It's currently quite stable and you can use it. All basic options like ``path`` and ``file`` mode implemented.

There still things left to do:
- [regex](https://github.com/kien/ctrlp.vim/blob/master/doc/ctrlp.txt#L731) mode doesnt work
- many TODOs in C module
- check how it works in other modes ( mru, tag etc. )