Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions doc/builtin.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Jul 06
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Jul 14


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -4320,6 +4320,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
messages |:messages|サブオプション
option オプション
packadd 任意パッケージ |pack-add| 名
retab |:retab| サブオプション
runtime |:runtime| 補完
scriptnames 読み込まれているスクリプト名 |:scriptnames|
shellcmd シェルコマンド
Expand Down Expand Up @@ -9208,12 +9209,13 @@ searchcount([{options}]) *searchcount()*
{options} についてはさらに以下を参照。

|n| や |N| を押下したときの最後の検索カウントを取るには、この
関数を `recompute: 0` で呼ぶ。|n| と |N| の最大カウントが 99
であるため、時として正しくない情報を返すことがある。もし 99 を
超える時は結果が最大カウント+1(100)でなくてはならない。もし正
しい情報を取得したいのであれば、`recompute: 1` を指定する: >
関数を `recompute: 0` で呼ぶ。これは 'maxsearchcount' が原因で
間違った情報を返すことがある。
カウントが 'maxsearchcount' を超えた場合、結果は
'maxsearchcount' + 1 になる。正しい情報を取得したい場合は、
`recompute: 1` を指定する: >

" 多量にマッチする場合、 result == maxcount + 1 (100)
" 多量にマッチする場合、result == 'maxsearchcount' + 1
" になる
let result = searchcount(#{recompute: 0})

Expand Down Expand Up @@ -9300,7 +9302,7 @@ searchcount([{options}]) *searchcount()*
もし検索の総計カウントが到達し
たら "total" の値が maxcount +
1 になる
(デフォルト: 99)
(デフォルト: 'maxsearchcount')
pos |List| `[lnum, col, off]` 値
再計算の値。
"current" の結果の値を更新する。
Expand Down
14 changes: 8 additions & 6 deletions en/builtin.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 06
*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 14


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -4333,6 +4333,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
messages |:messages| suboptions
option options
packadd optional package |pack-add| names
retab |:retab| suboptions
runtime |:runtime| completion
scriptnames sourced script names |:scriptnames|
shellcmd Shell command
Expand Down Expand Up @@ -9378,11 +9379,12 @@ searchcount([{options}]) *searchcount()*

To get the last search count when |n| or |N| was pressed, call
this function with `recompute: 0` . This sometimes returns
wrong information because |n| and |N|'s maximum count is 99.
If it exceeded 99 the result must be max count + 1 (100). If
you want to get correct information, specify `recompute: 1`: >
wrong information because of 'maxsearchcount'.
If the count exceeded 'maxsearchcount', the result must be
'maxsearchcount' + 1. If you want to get correct information,
specify `recompute: 1`: >

" result == maxcount + 1 (100) when many matches
" result == 'maxsearchcount' + 1 when many matches
let result = searchcount(#{recompute: 0})

" Below returns correct result (recompute defaults
Expand Down Expand Up @@ -9469,7 +9471,7 @@ searchcount([{options}]) *searchcount()*
result. if search exceeded
total count, "total" value
becomes `maxcount + 1`
(default: 99)
(default: 'maxsearchcount')
pos |List| `[lnum, col, off]` value
when recomputing the result.
this changes "current" result
Expand Down