From 5c9733b75c950f559cf533c9391df83b819d1155 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 13 Apr 2022 18:41:59 +0800 Subject: Improve ctrlp behavior (vim) --- .vim/after/plugin/ctrlp.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.vim/after/plugin/ctrlp.vim') diff --git a/.vim/after/plugin/ctrlp.vim b/.vim/after/plugin/ctrlp.vim index 32a0a74..27e5db6 100644 --- a/.vim/after/plugin/ctrlp.vim +++ b/.vim/after/plugin/ctrlp.vim @@ -5,18 +5,19 @@ if get(g:, 'loaded_fzf', 0) == 0 let g:ctrlp_regexp = 1 let g:ctrlp_use_caching = 0 let g:ctrlp_extensions = ['tag', 'buffertag', 'quickfix', 'line'] + let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' } let g:ctrlp_user_command = 'find %s -type f' if executable('fd') - let g:ctrlp_user_command = 'fd --hidden . %s' + let g:ctrlp_user_command = 'fd --hidden --type f . %s' endif nnoremap fb :CtrlPBuffer nnoremap fm :CtrlPMRU nnoremap fT :CtrlPTag - nnoremap ft :CtrlPBufTag \. + nnoremap ft :CtrlPBufTag bufnr() nnoremap fq :CtrlPQuickfix - nnoremap fl :CtrlPLine 1 + nnoremap fl :CtrlPLine bufnr() packadd ctrlp.vim endif -- cgit v1.2.3