Mercurial > dotfiles.old
diff vimrc @ 5:8975f7375c41
Use ag with ctrl-p
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sun, 23 Feb 2014 18:18:15 +0100 |
parents | 050d4d8c6796 |
children | dd1519fc21e3 |
line wrap: on
line diff
--- a/vimrc Sun Feb 23 17:58:31 2014 +0100 +++ b/vimrc Sun Feb 23 18:18:15 2014 +0100 @@ -93,7 +93,7 @@ " nnoremap <SPACE> <C-e> " Close Quickfix window (,qq) -map <leader>qq :cclose<CR> +" map <leader>qq :cclose<CR> nnoremap <silent> n n:call HLNext(0.4)<cr> nnoremap <silent> N N:call HLNext(0.4)<cr> @@ -207,6 +207,11 @@ map <C-l> :CtrlPBuffer<CR> map <C-m> :CtrlPTag<CR> +if executable('ag') + let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' + let g:ctrlp_use_caching = 0 +endif + " ctrl p - Commands map <leader>p :CtrlPCmdPalette<CR>