Switch to ripgrep
This commit is contained in:
parent
f58dde7a81
commit
3f9644f3be
2 changed files with 9 additions and 2 deletions
7
fzf.vim
7
fzf.vim
|
@ -18,3 +18,10 @@ let g:fzf_colors =
|
||||||
nnoremap <Leader>f :Files
|
nnoremap <Leader>f :Files
|
||||||
nnoremap <Leader>b :Buffers
|
nnoremap <Leader>b :Buffers
|
||||||
nnoremap <Leader>t :Tags
|
nnoremap <Leader>t :Tags
|
||||||
|
|
||||||
|
command! -bang -nargs=* Rg
|
||||||
|
\ call fzf#vim#grep(
|
||||||
|
\ 'rg --column --line-number --no-heading --color=always '.shellescape(<q-args>), 1,
|
||||||
|
\ <bang>0 ? fzf#vim#with_preview('up:60%')
|
||||||
|
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
|
||||||
|
\ <bang>0)
|
||||||
|
|
4
plug.vim
4
plug.vim
|
@ -6,9 +6,9 @@ Plug 'editorconfig/editorconfig-vim'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
" syntax checking on steroids
|
" syntax checking on steroids
|
||||||
Plug 'scrooloose/syntastic'
|
Plug 'scrooloose/syntastic'
|
||||||
" integrate ag, especially to be able to open matches, hugely useful for
|
" integrate ripgrep, especially to be able to open matches, hugely useful for
|
||||||
" code aware search
|
" code aware search
|
||||||
Plug 'rking/ag.vim'
|
Plug 'jremmen/vim-ripgrep'
|
||||||
" lightweight but sophisticated status line
|
" lightweight but sophisticated status line
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
|
Loading…
Reference in a new issue