vim-ripgrep


Ⅰ. 插件描述

Use RipGrep in Vim and display results in a quickfix list

Ⅱ. 基本信息

创建日期:  2016-09-25
使用用户:  449
Github星:  290
插件作者:  John Remmen

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jremmen/vim-ripgrep'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jremmen/vim-ripgrep'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jremmen/vim-ripgrep'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jremmen/vim-ripgrep

Ⅳ. 文档说明

# vim-ripgrep

:Rg <string|pattern>

Word under cursor will be searched if no argument is passed to Rg

configuration

SettingDefaultDetails
g:rg_binaryrgpath to rg
g:rg_format%f:%l:%c:%mvalue of grepformat
g:rg_commandg:rg_binary --vimgrepsearch command
g:rg_highlightfalsetrue if you want matches highlighted
g:rg_derive_rootfalsetrue 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_locationbotrightquickfix window location

misc

Show root search dir

:RgRoot

添加新评论