From 60ea3da091283ade431a9d5153d0173684af8147 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 13 Aug 2018 20:35:35 +0800 Subject: [PATCH] Add fzf --- vimrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/vimrc b/vimrc index 7714728..036baf6 100644 --- a/vimrc +++ b/vimrc @@ -49,6 +49,8 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'kien/ctrlp.vim' Plug 'hasufell/cpsm', { 'do': 'PY3=ON ./install.sh' } +Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } +Plug 'junegunn/fzf.vim' " local_vimrc Plug 'LucHermitte/lh-vim-lib' @@ -254,6 +256,19 @@ let g:ctrlp_user_command = 'fd --type f --color=never "" %s' let g:ctrlp_use_caching = 0 let g:ctrlp_match_func = { 'match': 'cpsm#CtrlPMatch' } +" fzf +" --column: Show column number +" --line-number: Show line number +" --no-heading: Do not show file headings in results +" --fixed-strings: Search term as a literal string +" --ignore-case: Case insensitive search +" --no-ignore: Do not respect .gitignore, etc... +" --hidden: Search hidden files and folders +" --follow: Follow symlinks +" --glob: Additional conditions for search (in this case ignore everything in the .git/ folder) +" --color: Search color options +command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(), 1, 0) + " ==== conque ====