From 20c96f15153e5338e2359e179c1f2d10d7d84cd3 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 24 Dec 2025 08:52:35 +0800 Subject: [PATCH] vim-patch:2006415: runtime(doc): add reference to searchcount() function https://github.com/vim/vim/commit/20064150169a94380abef37d3966c864531d1d92 Co-authored-by: Christian Brabandt --- runtime/doc/options.txt | 6 ++++-- runtime/lua/vim/_meta/options.lua | 6 ++++-- src/nvim/options.lua | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 338a27348e..a1aeeb8132 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -4319,7 +4319,8 @@ A jump table for the options with a short description can be found at |Q_op|. When the number of matches exceeds this value, Vim shows ">" instead of the exact count to keep searching fast. Note: larger values may impact performance. - The value must be between 1 and 9999. + The value must be between 1 and 9999. See also the |searchcount()| + function. *'menuitems'* *'mis'* 'menuitems' 'mis' number (default 25) @@ -5738,7 +5739,8 @@ A jump table for the options with a short description can be found at |Q_op|. "search hit TOP, continuing at BOTTOM" messages are only indicated by a "W" (Mnemonic: Wrapped) letter before the search count statistics. The maximum limit can be set with - the 'maxsearchcount' option. + the 'maxsearchcount' option, see also |searchcount()| + function. This gives you the opportunity to avoid that a change between buffers requires you to hit , but still gives as useful a message as diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 5e2f7191ee..5db4bf821a 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -4385,7 +4385,8 @@ vim.go.mmp = vim.go.maxmempattern --- When the number of matches exceeds this value, Vim shows ">" instead --- of the exact count to keep searching fast. --- Note: larger values may impact performance. ---- The value must be between 1 and 9999. +--- The value must be between 1 and 9999. See also the `searchcount()` +--- function. --- --- @type integer vim.o.maxsearchcount = 999 @@ -6073,7 +6074,8 @@ vim.bo.sw = vim.bo.shiftwidth --- "search hit TOP, continuing at BOTTOM" messages are only --- indicated by a "W" (Mnemonic: Wrapped) letter before the --- search count statistics. The maximum limit can be set with ---- the 'maxsearchcount' option. +--- the 'maxsearchcount' option, see also `searchcount()` +--- function. --- --- This gives you the opportunity to avoid that a change between buffers --- requires you to hit , but still gives as useful a message as diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 9452aec4be..0ec045e535 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -5713,7 +5713,8 @@ local options = { When the number of matches exceeds this value, Vim shows ">" instead of the exact count to keep searching fast. Note: larger values may impact performance. - The value must be between 1 and 9999. + The value must be between 1 and 9999. See also the |searchcount()| + function. ]=], full_name = 'maxsearchcount', scope = { 'global' }, @@ -7981,7 +7982,8 @@ local options = { "search hit TOP, continuing at BOTTOM" messages are only indicated by a "W" (Mnemonic: Wrapped) letter before the search count statistics. The maximum limit can be set with - the 'maxsearchcount' option. + the 'maxsearchcount' option, see also |searchcount()| + function. This gives you the opportunity to avoid that a change between buffers requires you to hit , but still gives as useful a message as