vimPlugins.vim-ripgrep/README.md
2018-10-26 19:04:56 +02:00

1.4 KiB

vim-ripgrep

Usage

Search using ripgrep. The word under cursor will be searched if no argument is passed to Rg.

:Rg <string|pattern>

Show root search dir:

:RgRoot

Installation

Using Vim-Plug:

Add this to your ~/.vimrc and run :PlugInstall

Plug 'jremmen/vim-ripgrep'

Using Vundle:

Add this to your ~/.vimrc and run :PluginInstall

Plugin 'jremmen/vim-ripgrep'

Using Pathogen:

Ensure you have execute pathogen#infect() in your ~/.vimrc file and run:

git clone https://github.com/jremmen/vim-ripgrep.git ~/.vim/bundle

Configuration

Setting Default Details
g:rg_binary rg path to rg
g:rg_format %f:%l:%c:%m value of grepformat
g:rg_command g:rg_binary --vimgrep search command
g:rg_highlight false true if you want matches highlighted
g:rg_derive_root false true if you want to find project root from cwd
g:rg_root_types ['.git'] list of files/dir found in project root
g:rg_window_location botright quickfix window location