summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2021-03-13 10:36:43 +0100
committerReiner Herrmann <reiner@reiner-h.de>2021-03-13 10:36:43 +0100
commitf263a5385eb6bee86fe63e706ae74342a03fe3ea (patch)
tree47a33c21f832a761534e6dd68cfacda88fd15ace
parent331d7feb3660cfe867ec86524fb48df5b69e1da3 (diff)
vim: replace --vimgrep with custom parameters
--vimgrep will print multiple lines if the word has been found multiple times per line. One result per line is sufficient and will keep the result buffer more tidy.
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 54d1a26..2649368 100644
--- a/vimrc
+++ b/vimrc
@@ -30,7 +30,7 @@ set wildmenu " enable wildmenu for command completion
set wildmode=list:longest,full " use a bash-like command completion mode
set backspace=indent,eol,start " enable backspacing
set diffopt^=indent-heuristic,algorithm:histogram " better diffing
-set grepprg=rg\ --vimgrep\ --no-heading\ --word-regexp\ --smart-case " use ripgrep for grepping
+set grepprg=rg\ --color\ never\ --with-filename\ --column\ --no-heading\ --word-regexp\ --smart-case " use ripgrep for grepping
let mapleader="," " more convenient leader
syntax on " enable syntax highlighting
filetype plugin indent on