Commits

Brodie Rao committed fcf3301

Add ctrlp-cmatcher plugin for better ctrlp sorting

  • Participants
  • Parent commits 003e1cc

Comments (0)

Files changed (3)

 [submodule "bundle/repeat"]
 	path = bundle/repeat
 	url = https://github.com/tpope/vim-repeat.git
+[submodule "bundle/ctrlp-cmatcher"]
+	path = bundle/ctrlp-cmatcher
+	url = https://github.com/JazzCore/ctrlp-cmatcher.git
 let mapleader = ","
 let maplocalleader = "\\"
 
-" Ctrl-P bindings
+" Ctrl-P settings
+if filereadable(expand('~/.vim/bundle/ctrlp-cmatcher/autoload/') .
+            \ 'fuzzycomt.so')
+    let g:ctrlp_match_func = {'match': 'matcher#cmatch'}
+endif
 let g:ctrlp_map = '<Leader>f'
 let g:ctrlp_switch_buffer = ''
 nnoremap <silent> <Leader>b <Esc>:CtrlPMRU<CR>