aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-13 21:57:01 +0800
committerGuangxiong Lin <[email protected]>2022-04-13 21:57:01 +0800
commitaf02629b45ff2994166d3614601760b682ea955f (patch)
treeb000f9dd2f5b512da272cde65b218f39f13e3c9b
parentceba50af7b51fe77190a4df574f68406d5b03347 (diff)
downloaddotfiles-af02629b45ff2994166d3614601760b682ea955f.tar.gz
dotfiles-af02629b45ff2994166d3614601760b682ea955f.tar.bz2
dotfiles-af02629b45ff2994166d3614601760b682ea955f.zip
Improve ctrlp match (vim)
-rw-r--r--.vim/after/plugin/ctrlp.vim2
-rw-r--r--.vimrc5
2 files changed, 6 insertions, 1 deletions
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 = '<leader>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 <leader>fl :CtrlPLine bufnr()<CR>
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