Created
February 14, 2016 16:32
-
-
Save marcsolanadal/d3f30a5baa2240f56913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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