Skip to content

Commit ab29ec4

Browse files
committed
Update insert.{txt,jax}
1 parent fe098b9 commit ab29ec4

File tree

2 files changed

+42
-4
lines changed

2 files changed

+42
-4
lines changed

doc/insert.jax

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim バージョン 9.1. Last change: 2025 Aug 25
1+
*insert.txt* For Vim バージョン 9.1. Last change: 2025 Sep 11
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1090,7 +1090,26 @@ Vim は、|i_CTRL-N| を使うのと同様に、入力中に自動的に補完
10901090
される。|i_CTRL-N| または |i_CTRL-X_CTRL-N| を使用するには、まず |CTRL-E| を押
10911091
してポップアップメニューを閉じる (|complete_CTRL-E| を参照)。
10921092

1093-
'autocomplete''autocompletetimeout' および 'autocompletedelay' も参照。
1093+
*ins-autocompletion-example*
1094+
設定例 ~
1095+
ポップアップメニューによる自動補完の一般的な構成: >
1096+
set autocomplete
1097+
set complete=.^5,w^5,b^5,u^5
1098+
set completeopt=popup
1099+
1100+
inoremap <silent><expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
1101+
inoremap <silent><expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
1102+
<
1103+
カレントバッファ、他のウィンドウ、およびリストされたバッファからの候補をポップ
1104+
アップメニューに表示し自動補完を有効にします。各ソースの候補は5つまでである。
1105+
メニューが表示されている間は、<Tab><S-Tab> で項目間を移動できる。オプショ
1106+
ンで、'completeopt' に "preinsert" を追加すると、最長共通プリフィックスが自動
1107+
的に挿入される。必要に応じて補完精度を向上させるために、追加のソース (例えば、
1108+
LSP クライアント) を 'complete' に追加できる。
1109+
1110+
'autocomplete''autocompletedelay' および 'autocompletetimeout' も参照。
1111+
1112+
コマンドラインの自動補完については、|cmdline-autocompletion| を参照。
10941113

10951114

10961115
☆補完候補を検索する関数 *complete-functions*

en/insert.txt

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 9.1. Last change: 2025 Aug 25
1+
*insert.txt* For Vim version 9.1. Last change: 2025 Sep 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1150,7 +1150,26 @@ any of them at any time by typing |CTRL-X|, which temporarily suspends
11501150
autocompletion. To use |i_CTRL-N| or |i_CTRL-X_CTRL-N| specifically, press
11511151
|CTRL-E| first to dismiss the popup menu (see |complete_CTRL-E|).
11521152

1153-
See also 'autocomplete', 'autocompletetimeout' and 'autocompletedelay'.
1153+
*ins-autocompletion-example*
1154+
Example setup ~
1155+
A typical configuration for automatic completion with a popup menu: >
1156+
set autocomplete
1157+
set complete=.^5,w^5,b^5,u^5
1158+
set completeopt=popup
1159+
1160+
inoremap <silent><expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
1161+
inoremap <silent><expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
1162+
<
1163+
This enables automatic completion with suggestions from the current buffer,
1164+
other windows, and listed buffers, displayed in a popup menu. Each source is
1165+
limited to 5 candidates. <Tab> and <S-Tab> move through the items when the
1166+
menu is visible. Optionally, add "preinsert" to 'completeopt' to insert the
1167+
longest common prefix automatically. Additional sources (e.g., LSP clients)
1168+
may be added to 'complete' to improve completion as required.
1169+
1170+
See also 'autocomplete', 'autocompletedelay' and 'autocompletetimeout'.
1171+
1172+
For command-line autocompletion, see |cmdline-autocompletion|.
11541173

11551174

11561175
FUNCTIONS FOR FINDING COMPLETIONS *complete-functions*

0 commit comments

Comments
 (0)