aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/vim_diff.txt
diff options
context:
space:
mode:
authorLuna Saphie Mittelbach <lunarlambda@gmail.com>2024-04-28 18:00:48 +0200
committerGitHub <noreply@github.com>2024-04-28 09:00:48 -0700
commit513fc461957f370f9e89b3cfd56cb03a816d6941 (patch)
tree03098d5684503e0a5a145a63a69d2c0956aca7e5 /runtime/doc/vim_diff.txt
parent83635e4e3db9a99c128e84e79deb590da354215d (diff)
downloadrneovim-513fc461957f370f9e89b3cfd56cb03a816d6941.tar.gz
rneovim-513fc461957f370f9e89b3cfd56cb03a816d6941.tar.bz2
rneovim-513fc461957f370f9e89b3cfd56cb03a816d6941.zip
feat(defaults): improve :grep defaults #28545
Based on feedback from #28324, pass -H and -I to regular grep (available on all platforms officially supported by Neovim), and only pass -uu to ripgrep. This makes :grep ignore binary files by default in both cases.
Diffstat (limited to 'runtime/doc/vim_diff.txt')
-rw-r--r--runtime/doc/vim_diff.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 4edcec36a2..97c25cc603 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -52,7 +52,8 @@ Defaults *nvim-defaults*
- 'encoding' is UTF-8 (cf. 'fileencoding' for file-content encoding)
- 'fillchars' defaults (in effect) to "vert:│,fold:·,foldsep:│"
- 'formatoptions' defaults to "tcqj"
-- 'grepprg' defaults to using ripgrep if available
+- 'grepprg' uses the -H and -I flags for regular grep,
+ and defaults to using ripgrep if available
- 'hidden' is enabled
- 'history' defaults to 10000 (the maximum)
- 'hlsearch' is enabled