Add fzf
This commit is contained in:
parent
5f149871f7
commit
60ea3da091
15
vimrc
15
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(<q-args>), 1, <bang>0)
|
||||
|
||||
|
||||
|
||||
" ==== conque ====
|
||||
|
Loading…
Reference in New Issue
Block a user