-
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
pythonin your%PATH%.Also you will need MinGW compiler suite installed. Dont forget to add
C:\MinGW\binto your%PATH%.Then go to
ctrlp-cmatcher\autoloaddir and run:python setup.py build --compiler=mingw32 python setup.py installIf 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' }