-
Notifications
You must be signed in to change notification settings - Fork 22
Manual installation
Thibault Jouan edited this page Mar 25, 2015
·
7 revisions
-
Get extension files with your favorite method. Example for Vundle:
Plugin 'JazzCore/ctrlp-cmatcher'
-
Compile C extension.
-
On Linux/Unix systems:
First, get Python header files. Example for Debian/Ubuntu:
[sudo] apt-get install python-dev
Then compile C module and install it as a Python module:
cd ~/.vim/bundle/ctrlp-cmatcher/autoload python setup.py install
-
On Windows:
Installation is similar to Linux version, but it can be more complicated because of weird errors during compilation.
First of all, make sure that you have
python
in your%PATH%
.Also you will need MinGW compiler suite installed. Dont forget to add
C:\MinGW\bin
to your%PATH%
.Then go to
ctrlp-cmatcher\autoload
dir and run:python setup.py build --compiler=mingw32 python setup.py install
If you are getting gcc: error: unrecognized command line option '-mno-cygwin' error, follow this fix.
- Edit your
.vimrc
:
Add following line:
let g:ctrlp_match_func = {'match' : 'matcher#cmatch' }