aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/ripgrep.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-12 23:58:43 +0800
committerGuangxiong Lin <[email protected]>2022-04-12 23:58:43 +0800
commit59b6f72412f3bd46b1201e4fb5b52660e48610a1 (patch)
tree81a106f425dc8a0fd3e5f96e633cac4618a82a76 /.vim/after/plugin/ripgrep.vim
parentd5ed7f28de10689e232a54a59cf971d01d56ac85 (diff)
downloaddotfiles-59b6f72412f3bd46b1201e4fb5b52660e48610a1.tar.gz
dotfiles-59b6f72412f3bd46b1201e4fb5b52660e48610a1.tar.bz2
dotfiles-59b6f72412f3bd46b1201e4fb5b52660e48610a1.zip
Use ripgrep in vim
Diffstat (limited to '.vim/after/plugin/ripgrep.vim')
-rw-r--r--.vim/after/plugin/ripgrep.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vim/after/plugin/ripgrep.vim b/.vim/after/plugin/ripgrep.vim
new file mode 100644
index 0000000..15e0285
--- /dev/null
+++ b/.vim/after/plugin/ripgrep.vim
@@ -0,0 +1,4 @@
+if executable('rg')
+ set grepprg=rg\ --vimgrep\ --smart-case\ --hidden\ --glob\ !.git
+ set grepformat=%f:%l:%c:%m
+endif