Skip to content

Instantly share code, notes, and snippets.

@mhartington
Created May 10, 2015 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhartington/c930b65b428459f7059f to your computer and use it in GitHub Desktop.
Save mhartington/c930b65b428459f7059f to your computer and use it in GitHub Desktop.
Fast search with ctrlP and vim
  • install the silver searcher
brew install the_silver_searcher
  • Add this to your .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""
" CTRLP 
"""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:ctrlp_user_command = 'ag %s -i --nocolor --nogroup --hidden
      \ --ignore .git
      \ --ignore .svn
      \ --ignore .hg
      \ --ignore .DS_Store
      \ --ignore "**/*.pyc"
      \ -g ""'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment