Skip to content

Commit 561955b

Browse files
authored
Merge pull request #1129 from tsuyoshicho/update/20220814/misc1
Update {cmdline,eval,insert}.{txt,jax}
2 parents 238b7f5 + 8fccf41 commit 561955b

File tree

6 files changed

+42
-32
lines changed

6 files changed

+42
-32
lines changed

doc/cmdline.jax

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim バージョン 9.0. Last change: 2022 Apr 29
1+
*cmdline.txt* For Vim バージョン 9.0. Last change: 2022 Jun 16
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -892,7 +892,7 @@ Note: これらは文字通りに打ち込まれる、これらは特別なキ
892892
る (イベント FileType, Syntax, SpellFileMissing 用)。
893893
ファイル名としてマッチした時、フルパスに展開される。
894894
*:<sfile>* *<sfile>*
895-
<sfile> コマンド ":source" の実行時、読み込まれたファイルのファイル
895+
<sfile> コマンド `:source` の実行時、読み込まれたファイルのファイル
896896
名に置き換えられる。 *E498*
897897
旧来の関数の実行時は、<stack> と同様にコールスタックに置き
898898
換えられる(これは後方互換性のためであり、<stack>
@@ -912,7 +912,7 @@ Note: これらは文字通りに打ち込まれる、これらは特別なキ
912912
イル名に置き換えられる。
913913
ファイル名が決定できないときは *E1274* エラーになる。
914914
*:<slnum>* *<slnum>*
915-
<slnum> コマンド ":source" の実行時、行番号に置き換えられる。 *E842*
915+
<slnum> コマンド `:source` の実行時、行番号に置き換えられる。 *E842*
916916
関数の中では、関数の先頭からの相対的な行番号になる。
917917
*:<sflnum>* *<sflnum>*
918918
<sflnum> スクリプトを実行すると、行番号に置き換えられる。<slnum>
@@ -1095,6 +1095,9 @@ Note: ファイル名が来る筈の所では、ワイルドカードの展開
10951095
コマンドラインウィンドウが開かれたとき、Vimはノーマルモードに移るが、オプショ
10961096
'insertmode' がオンのときは挿入モードに移る。
10971097

1098+
*E1292*
1099+
一度コマンドラインウィンドウを開くと、別個にそれを開くことはできない。
1100+
10981101
コマンドラインウィンドウの高さはオプション 'cmdwinheight' で指定できる (ただし
10991102
余裕がないとこれより低くなる)。常に幅は最大になり、場所はコマンドラインの直上
11001103
である。
@@ -1164,8 +1167,8 @@ CTRL-C コマンドラインモードとして継続する。カーソル下の
11641167
オプション 'wildchar'<Tab> であり、コマンドラインウィンドウがExコマンドに
11651168
対して使われているときは、以下の2個のマッピングが追加され、コマンドラインウィ
11661169
ンドウ内でも <Tab> で補完ができるようになる。 >
1167-
:imap <buffer> <Tab> <C-X><C-V>
1168-
:nmap <buffer> <Tab> a<C-X><C-V>
1170+
:inoremap <buffer> <Tab> <C-X><C-V>
1171+
:nnoremap <buffer> <Tab> a<C-X><C-V>
11691172
Note: ノーマルモードで <Tab> を打ち込むと、カーソルの次の文字の位置で補完を行
11701173
うことに注意。この方法なら行末でも補完が行われる。
11711174
それらのマッピングを望まないなら、次のようにして無効化すること。 >

doc/eval.jax

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ expr10->{lambda}([args])
13621362
base->alist[idx](args)
13631363
base->(getFuncRef())(args)
13641364
Note この最後の呼び出しでは "(getFuncRef())" 関数の解決で "args" の前に base
1365-
が挿入されて渡される。
1365+
が挿入されて渡される。 *E1275*
13661366

13671367
*E274*
13681368
"->name(" には空白を含めることはできない。"->" の前と "(" の後に空白を含めるこ
@@ -1506,7 +1506,7 @@ Note シングルクォートが使われていることに注意。
15061506
if a =~ '\s*'
15071507
15081508
1509-
文字列補間 *$quote* *interp-string* *E256*
1509+
文字列補間 *$quote* *interp-string*
15101510
----------
15111511
$"string" 補間された文字列定数 *expr-$quote*
15121512
$'string' 補間されたリテラル文字列定数 *expr-$'*
@@ -1515,7 +1515,7 @@ $'string' 補間されたリテラル文字列定数 *expr-$'*
15151515
Vim script の式(|expr1| を参照)を含めることができる。任意の値を返す式は波括弧
15161516
で囲むことができる。値は文字列に変換される。すべてのテキストと式の結果が連結さ
15171517
れ新しい文字列が作成される。
1518-
*E1278*
1518+
*E1278* *E1279*
15191519
文字列の内容に開き波括弧 '{' または閉じ波括弧 '}' を含めるには、それを2重にす
15201520
る。バックスラッシュを使用したダブルクォートで囲まれた文字列も動作する。単一の
15211521
閉じ波括弧 '}' はエラーになる。
@@ -1946,6 +1946,8 @@ v:completed_item
19461946
最も最近補完された単語が含まれた|complete-items||Dictionary|
19471947
|CompleteDone|イベント後に設定される。補完に失敗した時、その
19481948
|Dictionary|は空である。
1949+
Note: プラグインは、組み込みの |CompleteDone| イベントの動作を
1950+
エミュレートするために、この値を変更することができる。
19491951

19501952
*v:count* *count-variable*
19511953
v:count 最後に実行されたノーマルモードコマンドに渡されたカウント数。
@@ -2610,7 +2612,7 @@ Vim9 関数については |vim9.txt| を参照のこと。
26102612
:fu[nction][!] {name}([arguments]) [range] [abort] [dict] [closure]
26112613
{name} という名前で新しい関数を定義する。関数の本体は、
26122614
次の行から |:endfunction| と一致するまで続く。
2613-
2615+
*E1267*
26142616
関数名はアルファベットと数字と '_' からなり、通常の関
26152617
数はアルファベットの大文字、スクリプトローカル関数は
26162618
"s:" で始まらなければならない。Note: "b:" や "g:" は

doc/insert.jax

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,9 @@ CTRL-G CTRL-J 1行下の、挿入開始位置と同じ列へ移動 *i_CTRL-
374374
CTRL-O 1つコマンドを実行して、挿入モードに戻る *i_CTRL-O*
375375
CTRL-\ CTRL-O CTRL-O と同様だがカーソルを移動させない *i_CTRL-\_CTRL-O*
376376
CTRL-L 'insertmode' がオンのとき: ノーマルモードへ *i_CTRL-L*
377-
CTRL-G u undo で元に戻す地点を新たに設定 *i_CTRL-G_u*
377+
CTRL-G u undo のシーケンスを終了し、新しい変更を開始 *i_CTRL-G_u*
378378
CTRL-G U カーソルが同じ行内にある場合、次の左右への *i_CTRL-G_U*
379-
カーソル移動で undo を分割しない。
379+
カーソル移動で新しい undo ブロックを開始しない
380380
-----------------------------------------------------------------------
381381

382382
Note: カーソルキーを押した時に挿入モードから抜けてしまったら、'noesckeys' オプ
@@ -412,7 +412,8 @@ CTRL-G u を使う例: >
412412
413413
:inoremap <CR> <C-]><C-G>u<CR>
414414
415-
これは改行ごとに undo を分割する。また、それを行う前に短縮入力の展開も行う。
415+
これは改行ごとに新しい undo ブロックを始める。また、それを行う前に短縮入力の展
416+
開も行う。
416417

417418
CTRL-G U の使用例: >
418419
@@ -426,8 +427,8 @@ CTRL-G U の使用例: >
426427
inoremap <expr> <End> repeat('<C-G>U<Right>', col('$') - col('.'))
427428
inoremap ( ()<C-G>U<Left>
428429
429-
これにより undo を分割することなくカーソルキーを挿入モード内で使うことができ、
430-
|.| (および redo) は期待通りに動作するようになる。
430+
これにより新しい undo ブロックを開始することなくカーソルキーを挿入モード内で使
431+
うことができ、|.| (および redo) は期待通りに動作するようになる。
431432
また次のような (上記の "(" マッピングをともなう) テキスト入力:
432433

433434
Lorem ipsum (dolor

en/cmdline.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 9.0. Last change: 2022 Apr 29
1+
*cmdline.txt* For Vim version 9.0. Last change: 2022 Jun 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -936,7 +936,7 @@ Note: these are typed literally, they are not special keys!
936936
When the match is with a file name, it is expanded to the
937937
full path.
938938
*:<sfile>* *<sfile>*
939-
<sfile> When executing a ":source" command, is replaced with the
939+
<sfile> When executing a `:source` command, is replaced with the
940940
file name of the sourced file. *E498*
941941
When executing a legacy function, is replaced with the call
942942
stack, as with <stack> (this is for backwards
@@ -959,7 +959,7 @@ Note: these are typed literally, they are not special keys!
959959
defined.
960960
If the file name cannot be determined you get error *E1274* .
961961
*:<slnum>* *<slnum>*
962-
<slnum> When executing a ":source" command, is replaced with the
962+
<slnum> When executing a `:source` command, is replaced with the
963963
line number. *E842*
964964
When executing a function it's the line number relative to
965965
the start of the function.
@@ -1147,6 +1147,8 @@ character that indicates the type of command-line being edited, see
11471147

11481148
Vim will be in Normal mode when the editor is opened, except when 'insertmode'
11491149
is set.
1150+
*E1292*
1151+
Once a command-line window is open it is not possible to open another one.
11501152

11511153
The height of the window is specified with 'cmdwinheight' (or smaller if there
11521154
is no room). The window is always full width and is positioned just above the
@@ -1218,8 +1220,8 @@ save the command-line history and read it back later.
12181220
If the 'wildchar' option is set to <Tab>, and the command-line window is used
12191221
for an Ex command, then two mappings will be added to use <Tab> for completion
12201222
in the command-line window, like this: >
1221-
:imap <buffer> <Tab> <C-X><C-V>
1222-
:nmap <buffer> <Tab> a<C-X><C-V>
1223+
:inoremap <buffer> <Tab> <C-X><C-V>
1224+
:nnoremap <buffer> <Tab> a<C-X><C-V>
12231225
Note that hitting <Tab> in Normal mode will do completion on the next
12241226
character. That way it works at the end of the line.
12251227
If you don't want these mappings, disable them with: >

en/eval.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ parenthesis), or any expression in parentheses: >
13991399
base->alist[idx](args)
14001400
base->(getFuncRef())(args)
14011401
Note that in the last call the base is passed to the function resulting from
1402-
"(getFuncRef())", inserted before "args".
1402+
"(getFuncRef())", inserted before "args". *E1275*
14031403

14041404
*E274*
14051405
"->name(" must not contain white space. There can be white space before the
@@ -1549,7 +1549,7 @@ to be doubled. These two commands are equivalent: >
15491549
if a =~ '\s*'
15501550
15511551
1552-
interpolated-string *$quote* *interp-string* *E256*
1552+
interpolated-string *$quote* *interp-string*
15531553
--------------------
15541554
$"string" interpolated string constant *expr-$quote*
15551555
$'string' interpolated literal string constant *expr-$'*
@@ -1559,7 +1559,7 @@ allowing the inclusion of Vim script expressions (see |expr1|). Any
15591559
expression returning a value can be enclosed between curly braces. The value
15601560
is converted to a string. All the text and results of the expressions
15611561
are concatenated to make a new string.
1562-
*E1278*
1562+
*E1278* *E1279*
15631563
To include an opening brace '{' or closing brace '}' in the string content
15641564
double it. For double quoted strings using a backslash also works. A single
15651565
closing brace '}' will result in an error.
@@ -2005,6 +2005,8 @@ v:completed_item
20052005
|Dictionary| containing the |complete-items| for the most
20062006
recently completed word after |CompleteDone|. The
20072007
|Dictionary| is empty if the completion failed.
2008+
Note: Plugins can modify the value to emulate the builtin
2009+
|CompleteDone| event behavior.
20082010

20092011
*v:count* *count-variable*
20102012
v:count The count given for the last Normal mode command. Can be used
@@ -2680,7 +2682,7 @@ See |:verbose-cmd| for more information.
26802682
Define a new function by the name {name}. The body of
26812683
the function follows in the next lines, until the
26822684
matching |:endfunction|.
2683-
2685+
*E1267*
26842686
The name must be made of alphanumeric characters and
26852687
'_', and must start with a capital or "s:" (see
26862688
above). Note that using "b:" or "g:" is not allowed.

en/insert.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ CTRL-G CTRL-J cursor one line down, insert start column *i_CTRL-G_CTRL-J*
388388
CTRL-O execute one command, return to Insert mode *i_CTRL-O*
389389
CTRL-\ CTRL-O like CTRL-O but don't move the cursor *i_CTRL-\_CTRL-O*
390390
CTRL-L when 'insertmode' is set: go to Normal mode *i_CTRL-L*
391-
CTRL-G u break undo sequence, start new change *i_CTRL-G_u*
392-
CTRL-G U don't break undo with next left/right cursor *i_CTRL-G_U*
393-
movement, if the cursor stays within the
394-
same line
391+
CTRL-G u close undo sequence, start new change *i_CTRL-G_u*
392+
CTRL-G U don't start a new undo block with the next *i_CTRL-G_U*
393+
left/right cursor movement, if the cursor
394+
stays within the same line
395395
-----------------------------------------------------------------------
396396

397397
Note: If the cursor keys take you out of Insert mode, check the 'noesckeys'
@@ -428,8 +428,8 @@ that, with CTRL-O u. Another example: >
428428
429429
:inoremap <CR> <C-]><C-G>u<CR>
430430
431-
This breaks undo at each line break. It also expands abbreviations before
432-
this.
431+
This starts a new undo block at each line break. It also expands
432+
abbreviations before this.
433433

434434
An example for using CTRL-G U: >
435435
@@ -443,9 +443,9 @@ An example for using CTRL-G U: >
443443
inoremap <expr> <End> repeat('<C-G>U<Right>', col('$') - col('.'))
444444
inoremap ( ()<C-G>U<Left>
445445
446-
This makes it possible to use the cursor keys in Insert mode, without breaking
447-
the undo sequence and therefore using |.| (redo) will work as expected.
448-
Also entering a text like (with the "(" mapping from above):
446+
This makes it possible to use the cursor keys in Insert mode, without starting
447+
a new undo block and therefore using |.| (redo) will work as expected. Also
448+
entering a text like (with the "(" mapping from above):
449449

450450
Lorem ipsum (dolor
451451

0 commit comments

Comments
 (0)