Trying to search in vim using ripgrep :Rg
for e.g. '||'.
Have tried:
:Rg --hidden --no-ignore '||'
:Rg --hidden --no-ignore '\|\|'
:Rg --hidden --no-ignore "||"
:Rg --hidden --no-ignore "\|\|"
But it just matches every column of every line.
According to the manual you can use --fixed-strings
, but when I do
:Rg --fixed-strings --hidden --no-ignore '||'
:Rg --fixed-stringsssssssssssssssssss --hidden --no-ignore '||'
It still ignores any number of 's' to complain
1 || error: Found argument '--fixed-string' which wasn't expected, or isn't valid in this context
2 || Did you mean --fixed-strings?
3 ||
4 || USAGE:
5 ||
6 || rg [OPTIONS] PATTERN [PATH ...]
7 || rg [OPTIONS] [-e PATTERN ...] [-f PATTERNFILE ...] [PATH ...]
8 || rg [OPTIONS] --files [PATH ...]
9 || rg [OPTIONS] --type-list
10 || command | rg [OPTIONS] PATTERN
11 ||
12 || For more information try --help
13 ||
How do I use Vim Ripgrep to search for ||
?