tweag / promptworks.vim

PromptWorks vim configs as a self-bootstrapping vundle setup
2 stars 1 forks source link

Use SilverSearcher with CtrlP #9

Closed nicholaides closed 10 years ago

nicholaides commented 10 years ago

Apparently there's a way to use them together so you don't have to refresh CtrlP when files are added or removed.

justincampbell commented 10 years ago

This might work:

let g:ag_binary = system("which ag | xargs echo -n")
if filereadable(g:ag_binary)
  let g:ctrlp_user_command = g:ag_binary . ' %s -l --nocolor -g ""'
endif

let g:ctrlp_use_caching = 0
jgarber commented 10 years ago

Would love that!