From 99e4c9cfd6ee11a66630b058a46a367330fc014a Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 15 Mar 2020 09:32:52 +0800 Subject: [PATCH] Update: add grep program --- options.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/options.vim b/options.vim index 188e938..34f5262 100644 --- a/options.vim +++ b/options.vim @@ -162,4 +162,10 @@ set nojoinspaces set synmaxcol=500 set nostartofline + +" External program to use for grep command +if executable('rg') + set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case + set grepformat=%f:%l:%c:%m +endif "}