summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_config/110-ctrlp.vim11
-rw-r--r--vimrc7
2 files changed, 15 insertions, 3 deletions
diff --git a/_config/110-ctrlp.vim b/_config/110-ctrlp.vim
new file mode 100644
index 0000000..07b521d
--- /dev/null
+++ b/_config/110-ctrlp.vim
@@ -0,0 +1,11 @@
+if empty(globpath(&rtp, 'autoload/ctrlp.vim'))
+ finish
+endif
+
+let g:ctrlp_user_command = {
+ \ 'types': {
+ \ 1: ['.git', 'cd %s && git ls-files'],
+ \ 2: ['.hg', 'hg --cwd %s locate -I .'],
+ \ },
+ \ 'fallback': 'find %s -type f'
+ \ }
diff --git a/vimrc b/vimrc
index b35114c..f5cbd02 100644
--- a/vimrc
+++ b/vimrc
@@ -123,9 +123,10 @@ Plug 'borissov/fugitive-gitea'
" Plug 'tommcdo/vim-fubitive'
" Plug 'lambdalisue/gina.vim'
-"git clone https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install
-Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
-Plug 'junegunn/fzf.vim'
+Plug 'ctrlpvim/ctrlp.vim'
+Plug 'mattn/ctrlp-mark'
+Plug 'mattn/ctrlp-register'
+Plug 'mattn/ctrlp-launcher'
"apt install ripgrep
Plug 'mileszs/ack.vim'