Skip to content

Commit

Permalink
Vim: ctrlp-cmatcher for faster, better matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik committed Apr 13, 2014
1 parent 3dd8ed1 commit 36156e5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -108,3 +108,6 @@
[submodule "vim/bundle/CamelCaseMotion"]
path = vim/bundle/CamelCaseMotion
url = git@github.com:henrik/CamelCaseMotion.git
[submodule "vim/bundle/ctrlp-cmatcher"]
path = vim/bundle/ctrlp-cmatcher
url = https://github.com/JazzCore/ctrlp-cmatcher.git
7 changes: 7 additions & 0 deletions README.markdown
Expand Up @@ -22,6 +22,13 @@ Install plugins from submodules:

git submodule update --init

Compile [ctrlp-cmatcher](https://github.com/JazzCore/ctrlp-cmatcher) for faster, better matching:

# Fix compilation on OS X: http://stackoverflow.com/a/22322645/6962
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
cd vim/bundle/ctrlp-cmatcher/
./install_linux.sh

## tmux

Expand Down
1 change: 1 addition & 0 deletions vim/bundle/ctrlp-cmatcher
Submodule ctrlp-cmatcher added at 9b55b9
4 changes: 4 additions & 0 deletions vim/config/plugins.vim
Expand Up @@ -15,6 +15,10 @@ let g:ctrlp_show_hidden = 0
let g:ctrlp_max_files = 0
let g:ctrlp_switch_buffer = 0

" Use https://github.com/JazzCore/ctrlp-cmatcher
" for a faster, better matching algorithm.
let g:ctrlp_match_func = { 'match' : 'matcher#cmatch' }

" Only cache if we're over this number of files.
let g:ctrlp_use_caching = 2000

Expand Down

0 comments on commit 36156e5

Please sign in to comment.