diff options
author | Guangxiong Lin <[email protected]> | 2022-04-13 21:55:58 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-04-13 21:55:58 +0800 |
commit | ceba50af7b51fe77190a4df574f68406d5b03347 (patch) | |
tree | 035bd90bd54b063f44029b944733ba851f081bc7 | |
parent | e8781aef98ba02d9107c5b94ba8a4f589f63bc5c (diff) | |
download | dotfiles-ceba50af7b51fe77190a4df574f68406d5b03347.tar.gz dotfiles-ceba50af7b51fe77190a4df574f68406d5b03347.tar.bz2 dotfiles-ceba50af7b51fe77190a4df574f68406d5b03347.zip |
Try deprecating fzf and use ctrlp (vim)
-rw-r--r-- | .vim/after/plugin/ctrlp.vim | 2 | ||||
-rw-r--r-- | .vim/after/plugin/fzf.vim | 48 |
2 files changed, 25 insertions, 25 deletions
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 = '<leader>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(<q-args>), 1, - \ fzf#vim#with_preview(), <bang>0) - - noremap <leader>ff :FzfFiles<CR> - noremap <leader>fgf :FzfGFiles<CR> - noremap <leader>fb :FzfBuffers<CR> - noremap <leader>fm :FzfHistory<CR> - noremap <leader>ft :FzfBTags<CR> - noremap <leader>fT :FzfTags<CR> - noremap <leader>fa :FzfAg<space> - noremap <leader>fr :FzfRg<space> - noremap <leader>fc :FzfCommands<CR> - noremap <leader>fgc :FzfBCommits<CR> - noremap <leader>fgC :FzfCommits<CR> - noremap <leader>fl :FzfBLines<CR> - noremap <leader>fL :FzfLines<CR> - - 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(<q-args>), 1, +" \ fzf#vim#with_preview(), <bang>0) +" +" noremap <leader>ff :FzfFiles<CR> +" noremap <leader>fgf :FzfGFiles<CR> +" noremap <leader>fb :FzfBuffers<CR> +" noremap <leader>fm :FzfHistory<CR> +" noremap <leader>ft :FzfBTags<CR> +" noremap <leader>fT :FzfTags<CR> +" noremap <leader>fa :FzfAg<space> +" noremap <leader>fr :FzfRg<space> +" noremap <leader>fc :FzfCommands<CR> +" noremap <leader>fgc :FzfBCommits<CR> +" noremap <leader>fgC :FzfCommits<CR> +" noremap <leader>fl :FzfBLines<CR> +" noremap <leader>fL :FzfLines<CR> +" +" packadd fzf.vim +" endif |