Skip to content

Commit dfa97cd

Browse files
authored
Merge pull request #1634 from vim-jp/hh-update-insert
Update insert.{txt,jax}
2 parents 50e3320 + 93c662e commit dfa97cd

File tree

2 files changed

+52
-16
lines changed

2 files changed

+52
-16
lines changed

doc/insert.jax

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim バージョン 9.1. Last change: 2024 Jan 04
1+
*insert.txt* For Vim バージョン 9.1. Last change: 2024 Jul 25
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1119,6 +1119,11 @@ Note 最初の呼び出し以降にカーソルが移動した可能性があり
11191119
user_data この要素に関連付けられた |v:completed_item| で使用可能
11201120
なカスタムデータ。任意の型が使用できる。既定は空文字
11211121
列。
1122+
hl_group 追加のハイライトグループを指定して、ポップアップメ
1123+
ニューの補完項目に追加の属性を適用できる。
1124+
|hl-PmenuSel| および|hl-Pmenu| のハイライト属性と組み
1125+
合わせて、取り消し線などの cterm および GUI プロパティ
1126+
を補完項目に適用する。
11221127

11231128
これらのうち "icase", "equal", "dup" および "empty" 以外は文字列でなければなら
11241129
ない。これらの要件が満たされない場合はエラーメッセージが表示され、リスト中のそ
@@ -1905,13 +1910,26 @@ O カーソルのある行の上に新しい行を作り、そこにテキス
19051910
待ちつづける。バックスラッシュで始まる行には警戒すべし。|line-continuation|
19061911
照。
19071912

1908-
Ex モード (|-e| 参照) では行末にバックスラッシュを置くことで NUL 文字を挿入で
1909-
きる。行末にバックスラッシュを挿入したいときはバックスラッシュを2重にすること。
1910-
バックスラッシュが行末にある場合は実際に挿入される数は半分になる。
1911-
1912-
NOTE: これらのコマンドは |:global| または |:vglobal| と組み合わせて使うことは
1913-
できない。":append" と ":insert" は ":if" と ":endif"、":for" と ":endfor"、
1914-
":while" と ":endwhile" の間では機能しない。
1913+
"|" コマンド区切り文字の後に入力されたテキストが最初に使用される。したがって、
1914+
ex モードの以下のコマンドは: >
1915+
:a|one
1916+
two
1917+
.
1918+
:visual
1919+
カーソル行の後に以下のテキストを追加する: >
1920+
one
1921+
two
1922+
<
1923+
|Ex-mode| では、これらのコマンドが |:global| または |:vglobal| とともに使用さ
1924+
れると、行はコマンドに続くテキストから取得される。行はバックスラッシュでエス
1925+
ケープされた NL で区切る: >
1926+
:global/abc/insert\
1927+
one line\
1928+
another line
1929+
その場合、最後の "." は必要ない。
1930+
1931+
NOTE: ":append" と ":insert" は、":if" と ":endif"、":for" と ":endfor"、
1932+
":while" と ":endwhile" の間では正しく動作しない。
19151933

19161934
*:start* *:startinsert*
19171935
:star[tinsert][!] このコマンドの実行直後に挿入モードを開始する。ノーマル

en/insert.txt

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*insert.txt* For Vim version 9.1. Last change: 2024 Jan 04
1+
*insert.txt* For Vim version 9.1. Last change: 2024 Jul 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1183,6 +1183,12 @@ items:
11831183
user_data custom data which is associated with the item and
11841184
available in |v:completed_item|; it can be any type;
11851185
defaults to an empty string
1186+
hl_group allows specifying an additional highlight group to
1187+
apply extra attributes to completion items in the
1188+
popupmenu. Is combined with |hl-PmenuSel| and
1189+
|hl-Pmenu| highlighting attributes to apply cterm and
1190+
gui properties, such as strikethrough to the
1191+
completion items.
11861192

11871193
All of these except "icase", "equal", "dup" and "empty" must be a string. If
11881194
an item does not meet these requirements then an error message is given and
@@ -1995,13 +2001,25 @@ These two commands will keep on asking for lines, until you type a line
19952001
containing only a ".". Watch out for lines starting with a backslash, see
19962002
|line-continuation|.
19972003

1998-
When in Ex mode (see |-e|) a backslash at the end of the line can be used to
1999-
insert a NUL character. To be able to have a line ending in a backslash use
2000-
two backslashes. This means that the number of backslashes is halved, but
2001-
only at the end of the line.
2002-
2003-
NOTE: These commands cannot be used with |:global| or |:vglobal|.
2004-
":append" and ":insert" don't work properly in between ":if" and
2004+
Text typed after a "|" command separator is used first. So the following
2005+
command in ex mode: >
2006+
:a|one
2007+
two
2008+
.
2009+
:visual
2010+
<appends the following text, after the cursor line: >
2011+
one
2012+
two
2013+
<
2014+
In |Ex-mode|, when these commands are used with |:global| or |:vglobal| then
2015+
the lines are obtained from the text following the command. Separate lines
2016+
with a NL escaped with a backslash: >
2017+
:global/abc/insert\
2018+
one line\
2019+
another line
2020+
The final "." is not needed then.
2021+
2022+
NOTE: ":append" and ":insert" don't work properly in between ":if" and
20052023
":endif", ":for" and ":endfor", ":while" and ":endwhile".
20062024

20072025
*:start* *:startinsert*

0 commit comments

Comments
 (0)