ctrlp.vim 434 B

12345678910111213141516171819
  1. let g:ctrlp_map = '<Leader>p'
  2. " Use `ag` as fallback if available.
  3. if executable('ag')
  4. let s:fallback = 'ag %s -l --nocolor -g ""'
  5. else
  6. let s:fallback = 'find %s -type f'
  7. endif
  8. let g:ctrlp_user_command = [
  9. \ '.git',
  10. \ 'cd %s && git ls-files . -co --exclude-standard',
  11. \ s:fallback
  12. \]
  13. let g:ctrlp_extensions = ['funky']
  14. " Function definition jumping with CtrlP's Funky plugin.
  15. nnoremap <silent> <Leader>f :CtrlPFunky<CR>