From ceba50af7b51fe77190a4df574f68406d5b03347 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 13 Apr 2022 21:55:58 +0800 Subject: Try deprecating fzf and use ctrlp (vim) --- .vim/after/plugin/ctrlp.vim | 2 +- .vim/after/plugin/fzf.vim | 48 ++++++++++++++++++++++----------------------- 2 files changed, 25 insertions(+), 25 deletions(-) (limited to '.vim') diff --git a/.vim/after/plugin/ctrlp.vim b/.vim/after/plugin/ctrlp.vim index 9c3b7bd..5e2d936 100644 --- a/.vim/after/plugin/ctrlp.vim +++ b/.vim/after/plugin/ctrlp.vim @@ -1,4 +1,4 @@ -if get(g:, 'loaded_fzf', 0) == 0 && get(g:, 'loaded_fzf_vim', 0) == 0 +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' diff --git a/.vim/after/plugin/fzf.vim b/.vim/after/plugin/fzf.vim index e041d6b..9234eb4 100644 --- a/.vim/after/plugin/fzf.vim +++ b/.vim/after/plugin/fzf.vim @@ -1,24 +1,24 @@ -if executable('fzf') - let g:fzf_command_prefix = 'Fzf' - - command! -bang -nargs=* FzfRg - \ call fzf#vim#grep( - \ 'rg --hidden --column --line-number --no-heading --color=always --smart-case --glob !.git -- '.shellescape(), 1, - \ fzf#vim#with_preview(), 0) - - noremap ff :FzfFiles - noremap fgf :FzfGFiles - noremap fb :FzfBuffers - noremap fm :FzfHistory - noremap ft :FzfBTags - noremap fT :FzfTags - noremap fa :FzfAg - noremap fr :FzfRg - noremap fc :FzfCommands - noremap fgc :FzfBCommits - noremap fgC :FzfCommits - noremap fl :FzfBLines - noremap fL :FzfLines - - packadd fzf.vim -endif +" if executable('fzf') && get(g:, 'loaded_fzf_vim', 0) == 1 +" let g:fzf_command_prefix = 'Fzf' +" +" command! -bang -nargs=* FzfRg +" \ call fzf#vim#grep( +" \ 'rg --hidden --column --line-number --no-heading --color=always --smart-case --glob !.git -- '.shellescape(), 1, +" \ fzf#vim#with_preview(), 0) +" +" noremap ff :FzfFiles +" noremap fgf :FzfGFiles +" noremap fb :FzfBuffers +" noremap fm :FzfHistory +" noremap ft :FzfBTags +" noremap fT :FzfTags +" noremap fa :FzfAg +" noremap fr :FzfRg +" noremap fc :FzfCommands +" noremap fgc :FzfBCommits +" noremap fgC :FzfCommits +" noremap fl :FzfBLines +" noremap fL :FzfLines +" +" packadd fzf.vim +" endif -- cgit v1.2.3