summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-07-09 08:55:08 +0800
committerGitHub <noreply@github.com>2025-07-09 08:55:08 +0800
commit96aef50624e03800a3ec35491a0bacab33427fd9 (patch)
treea7bd6894a53caba2c67bdf0669de016c684df679 /runtime/lua
parentdb7c2acbc6104e44b524e720c64623c3b63ed4b8 (diff)
parent5fe310c5e689f2d19dc0a3a0dc4df367eb1182e3 (diff)
Merge pull request #34852 from zeertzjq/vim-9.1.1526
vim-patch:9.1.{1526,1528}
Diffstat (limited to 'runtime/lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 60715def3e..c529a87811 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -7818,6 +7818,7 @@ vim.go.ww = vim.go.whichwrap
--- 'wildchar' also enables completion in search pattern contexts such as
--- `/`, `?`, `:s`, `:g`, `:v`, and `:vim`. To insert a literal <Tab>
--- instead of triggering completion, type <C-V><Tab> or "\t".
+--- See also `'wildoptions'`.
---
--- @type integer
vim.o.wildchar = 9
@@ -8012,6 +8013,20 @@ vim.go.wim = vim.go.wildmode
--- A list of words that change how `cmdline-completion` is done.
--- The following values are supported:
+--- exacttext When this flag is present, search pattern completion
+--- (e.g., in `/`, `?`, `:s`, `:g`, `:v`, and `:vim`)
+--- shows exact buffer text as menu items, without
+--- preserving regex artifacts like position
+--- anchors (e.g., `/\\<`). This provides more intuitive
+--- menu items that match the actual buffer text.
+--- However, searches may be less accurate since the
+--- pattern is not preserved exactly.
+--- By default, Vim preserves the typed pattern (with
+--- anchors) and appends the matched word. This preserves
+--- search correctness, especially when using regular
+--- expressions or with 'smartcase' enabled. However, the
+--- case of the appended matched word may not exactly
+--- match the case of the word in the buffer.
--- fuzzy Use `fuzzy-matching` to find completion matches. When
--- this value is specified, wildcard expansion will not
--- be used for completion. The matches will be sorted by