aboutsummaryrefslogtreecommitdiff
path: root/options.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-03-15 09:32:52 +0800
committerjdhao <jdhao@hotmail.com>2020-03-15 09:32:52 +0800
commit99e4c9cfd6ee11a66630b058a46a367330fc014a (patch)
tree1bcd56a840972a0ca3b51c3dd8b650b7f387c9b8 /options.vim
parent8ae7431cbe77e4b6416a9a5068dd93a87a0a1541 (diff)
Update: add grep program
Diffstat (limited to 'options.vim')
-rw-r--r--options.vim6
1 files changed, 6 insertions, 0 deletions
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
"}