From af02629b45ff2994166d3614601760b682ea955f Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 13 Apr 2022 21:57:01 +0800 Subject: Improve ctrlp match (vim) --- .vim/after/plugin/ctrlp.vim | 2 +- .vimrc | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.vim/after/plugin/ctrlp.vim b/.vim/after/plugin/ctrlp.vim index 5e2d936..9c16164 100644 --- a/.vim/after/plugin/ctrlp.vim +++ b/.vim/after/plugin/ctrlp.vim @@ -2,7 +2,6 @@ if get(g:, 'loaded_fzf_vim', 0) == 0 let g:ctrlp_map = 'ff' let g:ctrlp_cmd = 'CtrlP' let g:ctrlp_working_path_mode = 'ra' - 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' } @@ -20,4 +19,5 @@ if get(g:, 'loaded_fzf_vim', 0) == 0 nnoremap fl :CtrlPLine bufnr() packadd ctrlp.vim + packadd ctrlp-py-matcher endif diff --git a/.vimrc b/.vimrc index ff588b0..93ccda7 100644 --- a/.vimrc +++ b/.vimrc @@ -20,6 +20,11 @@ set secure set exrc set noerrorbells +" Use python3 first +if has('python3') +elseif has('python') +endif + " GUI set guioptions-=m -- cgit v1.2.3