comparison 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
comparison
equal deleted inserted replaced
4:050d4d8c6796 5:8975f7375c41
91 inoremap £ \ 91 inoremap £ \
92 92
93 " nnoremap <SPACE> <C-e> 93 " nnoremap <SPACE> <C-e>
94 94
95 " Close Quickfix window (,qq) 95 " Close Quickfix window (,qq)
96 map <leader>qq :cclose<CR> 96 " map <leader>qq :cclose<CR>
97 97
98 nnoremap <silent> n n:call HLNext(0.4)<cr> 98 nnoremap <silent> n n:call HLNext(0.4)<cr>
99 nnoremap <silent> N N:call HLNext(0.4)<cr> 99 nnoremap <silent> N N:call HLNext(0.4)<cr>
100 100
101 function! HLNext (blinktime) 101 function! HLNext (blinktime)
204 let g:ctrl_map = '<c-p>' 204 let g:ctrl_map = '<c-p>'
205 let g:ctrl_cmd = 'CtrlP' 205 let g:ctrl_cmd = 'CtrlP'
206 206
207 map <C-l> :CtrlPBuffer<CR> 207 map <C-l> :CtrlPBuffer<CR>
208 map <C-m> :CtrlPTag<CR> 208 map <C-m> :CtrlPTag<CR>
209
210 if executable('ag')
211 let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
212 let g:ctrlp_use_caching = 0
213 endif
209 214
210 " ctrl p - Commands 215 " ctrl p - Commands
211 map <leader>p :CtrlPCmdPalette<CR> 216 map <leader>p :CtrlPCmdPalette<CR>
212 217
213 " Markdown 218 " Markdown