summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-09-22 21:32:38 -0400
committerAndrew Gallant <jamslam@gmail.com>2016-09-22 21:32:38 -0400
commitdfebed6cbe44593094e1632acd2d360e47d3abf1 (patch)
treeb9960015e7aadfbda372ffeae3f2d0a6d688e784 /doc
parent9981e7883ae936ae8863628a1cfb6d417e9d6fe7 (diff)
Add --vimgrep flag.
The --vimgrep flag forces a line to be printed for every match, with line and column numbers.
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.18
-rw-r--r--doc/rg.1.md5
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/rg.1 b/doc/rg.1
index 1e401906..300ad1b1 100644
--- a/doc/rg.1
+++ b/doc/rg.1
@@ -237,6 +237,14 @@ Defaults to the number of logical CPUs (capped at 6).
Show the version number of ripgrep and exit.
.RS
.RE
+.TP
+.B \-\-vimgrep
+Show results with every match on its own line, including line numbers
+and column numbers.
+(With this option, a line with more than one match of the regex will be
+printed more than once.)
+.RS
+.RE
.SH FILE TYPE MANAGEMENT OPTIONS
.TP
.B \-\-type\-list
diff --git a/doc/rg.1.md b/doc/rg.1.md
index 953bc1f8..81e974eb 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -153,6 +153,11 @@ the raw speed of grep.
--version
: Show the version number of ripgrep and exit.
+--vimgrep
+: Show results with every match on its own line, including line
+ numbers and column numbers. (With this option, a line with more
+ than one match of the regex will be printed more than once.)
+
# FILE TYPE MANAGEMENT OPTIONS
--type-list