Skip to content

Instantly share code, notes, and snippets.

@marcsolanadal
Created February 14, 2016 16:32
Show Gist options
  • Save marcsolanadal/d3f30a5baa2240f56913 to your computer and use it in GitHub Desktop.
Save marcsolanadal/d3f30a5baa2240f56913 to your computer and use it in GitHub Desktop.
" The silver searcher with CtrlP
let g:ctrlp_map = '<C-P>'
nnoremap \ :grep! "\b<C-R><C-W>\b"<CR>:cw<CR>
if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching = 0
endif
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_custom_ignore = '\v[/\](node_modules|target|dist)|(\.(swp|ico|git|svn))$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment