Skip to content

Commit 6e63f35

Browse files
authored
Merge pull request #530 from hiromi-mi/update_various
Update various.{txt,jax}
2 parents a06f13e + ff734fc commit 6e63f35

File tree

2 files changed

+50
-71
lines changed

2 files changed

+50
-71
lines changed

doc/various.jax

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*various.txt* For Vim バージョン 8.1. Last change: 2019 Jan 23
1+
*various.txt* For Vim バージョン 8.1. Last change: 2019 May 05
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -73,16 +73,13 @@ ga カーソル位置の文字の文字コードを、10/16/8 進数で表示
7373
これは、ö を入力するために CTRL-K o : とタイプすればよ
7474
いことを意味しています。
7575

76-
{Vi にはない}
77-
7876
*g8*
7977
g8 カーソル位置の文字のバイト列を 16 進数で表示します。エ
8078
ンコーディングが |UTF-8| の場合のみ正しく機能します。
8179
合成文字も表示されます。'maxcombine' の設定は影響しま
8280
せん。
8381
2 文字の合成文字が結合されている文字の表示例:
8482
e0 b8 81 + e0 b8 b9 + e0 b9 89 ~
85-
{Vi にはない}
8683

8784
*8g8*
8885
8g8 カーソル以降の不正な UTF-8 バイト列を検索します。
@@ -97,7 +94,6 @@ g8 カーソル位置の文字のバイト列を 16 進数で表示します
9794
を継続しません。
9895
Note: カーソルがすでに不正なバイト列の上にある場合は、
9996
カーソルは移動しません。
100-
{Vi にはない}
10197

10298
*:p* *:pr* *:print* *E749*
10399
:[range]p[rint] [flags]
@@ -173,8 +169,6 @@ g8 カーソル位置の文字のバイト列を 16 進数で表示します
173169

174170
:{range}z#[+-^.=]{count} *:z#*
175171
":z" と同じですが、行番号も表示します。
176-
{Vi クローンによってはこの機能が使えないことがありま
177-
す。引数が違う場合もあります}
178172

179173
*:=*
180174
:= [flags] 最終行の行番号を表示します。
@@ -228,14 +222,12 @@ g8 カーソル位置の文字のバイト列を 16 進数で表示します
228222

229223
例: >
230224
:exe "normal \<c-w>\<c-w>"
231-
< {Vi には、もちろんない}
232225
233226
:{range}norm[al][!] {commands} *:normal-range*
234227
{range} の各行に対してノーマルモードコマンド{commands}
235228
を実行します。{commands} はカーソルが行頭にある状態で
236229
実行されます。その他は範囲指定の無い ":normal" コマン
237230
ドと同じです。
238-
{Vi にはない}
239231

240232
*:sh* *:shell* *E371*
241233
:sh[ell] シェルを起動します。シェルを終了 ("exit"コマンドを実行)
@@ -457,7 +449,8 @@ N *+textprop* |text-properties|
457449
N *+timers* |timer_start()| 関数
458450
N *+title* ウィンドウタイトルとアイコン設定 |'title'| |'icon'|
459451
N *+toolbar* |gui-toolbar|
460-
N *+user_commands* ユーザー定義コマンド |user-commands|
452+
T *+user_commands* ユーザー定義コマンド |user-commands|
453+
8.1.1210 からは常に有効。
461454
B *+vartabs* 可変幅のタブストップ |'vartabstop'|
462455
N *+viminfo* |'viminfo'|
463456
*+vertsplit* ウィンドウの垂直分割 |:vsplit|; 8.0.1118 からは常に
@@ -489,7 +482,7 @@ N *+X11* Unix のみ: ウィンドウタイトルを復帰可能 |X11|
489482
:ve[rsion] {nr} 現在は無視されます。これはかつて .vimrc の中でバージョ
490483
ン番号をチェックするために使われていました。現在は
491484
":if" コマンドを使ってバージョン依存の振る舞いを記述で
492-
きるので、削除されています。{Vi にはない}
485+
きるので、削除されています。
493486

494487
*:redi* *:redir*
495488
:redi[r][!] > {file} コマンドの出力 (メッセージ) を {file} にリダイレクトし
@@ -511,31 +504,26 @@ N *+X11* Unix のみ: ウィンドウタイトルを復帰可能 |X11|
511504
このコマンドの代わりに、オプション 'verbosefile' を使
512505
うこともできます。":redir" と同時に使うこともできま
513506
す。
514-
{Vi にはない}
515507

516508
:redi[r] >> {file} メッセージを {file} にリダイレクトします。
517-
{file} が既に存在する場合は追記します。 {Vi にはない}
509+
{file} が既に存在する場合は追記します。
518510

519511
:redi[r] @{a-zA-Z}
520512
:redi[r] @{a-zA-Z}> メッセージをレジスタ {a-z} にリダイレクトします。レジ
521513
スタ名が大文字 {A-Z} の場合は、そのレジスタに追記され
522514
ます。レジスタ名の後ろの ">" は省略可能です。
523-
{Vi にはない}
524-
:redi[r] @{a-z}>> メッセージをレジスタ {a-z} に追記します。{Vi にはない}
515+
:redi[r] @{a-z}>> メッセージをレジスタ {a-z} に追記します。
525516

526517
:redi[r] @*>
527518
:redi[r] @+> メッセージをセレクションまたはクリップボードにリダイレ
528519
クトします。互換性のため、レジスタ名の後ろの ">" は省
529520
略できます。|quotestar||quoteplus| を参照。
530-
{Vi にはない}
531521
:redi[r] @*>>
532522
:redi[r] @+>> メッセージをクリップボードに追記します。
533-
{Vi にはない}
534523

535524
:redi[r] @"> メッセージを無名レジスタにリダイレクトします。互換性の
536525
ため、レジスタ名の後ろの ">" は省略できます。
537-
{Vi にはない}
538-
:redi[r] @">> メッセージを無名レジスタに追記します。{Vi にはない}
526+
:redi[r] @">> メッセージを無名レジスタに追記します。
539527

540528
:redi[r] => {var} メッセージを変数にリダイレクトします。変数が存在しない
541529
場合は、作成されます。変数がすでにある場合は、空文字列
@@ -544,14 +532,13 @@ N *+X11* Unix のみ: ウィンドウタイトルを復帰可能 |X11|
544532
文字列変数のみ使えます。リダイレクトを開始した後で変数
545533
を変更したり、ロックしたり、変数タイプを変更したりする
546534
と、それ以降のコマンドがメッセージを出力するときにエラー
547-
が起こります。{Vi にはない}
535+
が起こります。
548536
コマンド1つの出力を取得するのには |execute()| 関数を使
549537
うことができます。
550538

551539
:redi[r] =>> {var} メッセージを変数に追記します。文字列変数のみ使えます。
552-
{Vi にはない}
553540

554-
:redi[r] END メッセージのリダイレクトを終了します。 {Vi にはない}
541+
:redi[r] END メッセージのリダイレクトを終了します。
555542

556543
*:filt* *:filter*
557544
:filt[er][!] {pat} {command}
@@ -574,17 +561,19 @@ N *+X11* Unix のみ: ウィンドウタイトルを復帰可能 |X11|
574561
マンドだけがフィルタリングをサポートしているので、サ
575562
ポートしているかどうかは実際に試してみてください。フィ
576563
ルタリングをサポートするコマンドの一部:
577-
|:#| - 行全体をフィルタ
578-
|:command| - コマンド名でフィルタ
579-
|:files| - ファイル名でフィルタ
580-
|:highlight| - ハイライトグループでフィルタ
581-
|:jumps| - ファイル名でフィルタ
582-
|:let| - 変数名でフィルタ
583-
|:list| - 行全体をフィルタ
584-
|:llist| - ファイル名かモジュール名でフィルタ
585-
|:oldfiles| - ファイル名でフィルタ
586-
|:clist| - ファイル名かモジュール名でフィルタ
587-
|:set| - 変数名でフィルタ
564+
|:#| - 行全体をフィルタ
565+
|:clist| - ファイル名かモジュール名でフィルタ
566+
|:command| - コマンド名でフィルタ
567+
|:files| - ファイル名でフィルタ
568+
|:highlight| - ハイライトグループでフィルタ
569+
|:jumps| - ファイル名でフィルタ
570+
|:let| - 変数名でフィルタ
571+
|:list| - 行全体をフィルタ
572+
|:llist| - ファイル名かモジュール名でフィルタ
573+
|:marks| - 現在のファイル内のテキストか他のファ
574+
イルのファイル名でフィルタ
575+
|:oldfiles| - ファイル名でフィルタ
576+
|:set| - 変数名でフィルタ
588577

589578
通常のメッセージだけがフィルタリングされ、エラー
590579
メッセージはされません。 {訳注: 常に出力されます}
@@ -690,12 +679,11 @@ K カーソル位置のキーワードを調べるためのプログラムを
690679
< - 'keywordprg' が "man -s" の場合は、"K" の前に入力さ
691680
れたカウントは "-s" の後に挿入されます。カウントを省
692681
略した場合は、"-s" は除去されます。
693-
{Vi にはない}
694682

695683
*v_K*
696684
{Visual}K "K" と同じですが、キーワードにはビジュアル選択されたテ
697685
キストが使用されます。複数行を選択したときは機能しませ
698-
ん。{Vi にはない}
686+
ん。
699687

700688
[N]gs *gs* *:sl* *:sleep*
701689
:[N]sl[eep] [N] [m] [N] 秒間何もしません。[m] を付けると、[N] ミリ秒間ス
@@ -709,7 +697,6 @@ K カーソル位置のキーワードを調べるためのプログラムを
709697
"gs" は "goto sleep" の略です。
710698
カーソルが表示可能な位置にある場合は、スリープしている
711699
間、カーソルはテキスト中に表示されます。
712-
{Vi にはない}
713700
スリープ中に受信した netbeans メッセージは処理されま
714701
す。{|+netbeans_intg| 機能つきでコンパイルされたときの
715702
み利用可能}

en/various.txt

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*various.txt* For Vim version 8.1. Last change: 2019 Mar 23
1+
*various.txt* For Vim version 8.1. Last change: 2019 May 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -73,16 +73,13 @@ ga Print the ascii value of the character under the
7373
<ö> 246, Hex 00f6, Oct 366, Digr o: ~
7474
This shows you can type CTRL-K o : to insert ö.
7575

76-
{not in Vi}
77-
7876
*g8*
7977
g8 Print the hex values of the bytes used in the
8078
character under the cursor, assuming it is in |UTF-8|
8179
encoding. This also shows composing characters. The
8280
value of 'maxcombine' doesn't matter.
8381
Example of a character with two composing characters:
8482
e0 b8 81 + e0 b8 b9 + e0 b9 89 ~
85-
{not in Vi}
8683

8784
*8g8*
8885
8g8 Find an illegal UTF-8 byte sequence at or after the
@@ -97,7 +94,6 @@ g8 Print the hex values of the bytes used in the
9794
Note that when the cursor is on an illegal byte or the
9895
cursor is halfway a multi-byte character the command
9996
won't move the cursor.
100-
{not in Vi}
10197

10298
*:p* *:pr* *:print* *E749*
10399
:[range]p[rint] [flags]
@@ -174,7 +170,6 @@ g8 Print the hex values of the bytes used in the
174170

175171
:{range}z#[+-^.=]{count} *:z#*
176172
Like ":z", but number the lines.
177-
{not in all versions of Vi, not with these arguments}
178173

179174
*:=*
180175
:= [flags] Print the last line number.
@@ -224,15 +219,13 @@ g8 Print the hex values of the bytes used in the
224219

225220
Example: >
226221
:exe "normal \<c-w>\<c-w>"
227-
< {not in Vi, of course}
228222
229223
:{range}norm[al][!] {commands} *:normal-range*
230224
Execute Normal mode commands {commands} for each line
231225
in the {range}. Before executing the {commands}, the
232226
cursor is positioned in the first column of the range,
233227
for each line. Otherwise it's the same as the
234228
":normal" command without a range.
235-
{not in Vi}
236229

237230
*:sh* *:shell* *E371*
238231
:sh[ell] This command starts a shell. When the shell exits
@@ -456,7 +449,8 @@ N *+textprop* |text-properties|
456449
N *+timers* the |timer_start()| function
457450
N *+title* Setting the window 'title' and 'icon'
458451
N *+toolbar* |gui-toolbar|
459-
N *+user_commands* User-defined commands. |user-commands|
452+
T *+user_commands* User-defined commands. |user-commands|
453+
Always enabled since 8.1.1210.
460454
B *+vartabs* Variable-width tabstops. |'vartabstop'|
461455
N *+viminfo* |'viminfo'|
462456
*+vertsplit* Vertically split windows |:vsplit|; Always enabled
@@ -489,7 +483,7 @@ N *+X11* Unix only: can restore window title |X11|
489483
:ve[rsion] {nr} Is now ignored. This was previously used to check the
490484
version number of a .vimrc file. It was removed,
491485
because you can now use the ":if" command for
492-
version-dependent behavior. {not in Vi}
486+
version-dependent behavior.
493487

494488
*:redi* *:redir*
495489
:redi[r][!] > {file} Redirect messages to file {file}. The messages which
@@ -509,31 +503,28 @@ N *+X11* Unix only: can restore window title |X11|
509503
with ":silent call Function()".
510504
An alternative is to use the 'verbosefile' option,
511505
this can be used in combination with ":redir".
512-
{not in Vi}
513506

514507
:redi[r] >> {file} Redirect messages to file {file}. Append if {file}
515-
already exists. {not in Vi}
508+
already exists.
516509

517510
:redi[r] @{a-zA-Z}
518511
:redi[r] @{a-zA-Z}> Redirect messages to register {a-z}. Append to the
519512
contents of the register if its name is given
520513
uppercase {A-Z}. The ">" after the register name is
521-
optional. {not in Vi}
522-
:redi[r] @{a-z}>> Append messages to register {a-z}. {not in Vi}
514+
optional.
515+
:redi[r] @{a-z}>> Append messages to register {a-z}.
523516

524517
:redi[r] @*>
525518
:redi[r] @+> Redirect messages to the selection or clipboard. For
526519
backward compatibility, the ">" after the register
527520
name can be omitted. See |quotestar| and |quoteplus|.
528-
{not in Vi}
529521
:redi[r] @*>>
530522
:redi[r] @+>> Append messages to the selection or clipboard.
531-
{not in Vi}
532523

533524
:redi[r] @"> Redirect messages to the unnamed register. For
534525
backward compatibility, the ">" after the register
535-
name can be omitted. {not in Vi}
536-
:redi[r] @">> Append messages to the unnamed register. {not in Vi}
526+
name can be omitted.
527+
:redi[r] @">> Append messages to the unnamed register.
537528

538529
:redi[r] => {var} Redirect messages to a variable. If the variable
539530
doesn't exist, then it is created. If the variable
@@ -542,14 +533,14 @@ N *+X11* Unix only: can restore window title |X11|
542533
Only string variables can be used. After the
543534
redirection starts, if the variable is removed or
544535
locked or the variable type is changed, then further
545-
command output messages will cause errors. {not in Vi}
536+
command output messages will cause errors.
546537
To get the output of one command the |execute()|
547538
function can be used.
548539

549540
:redi[r] =>> {var} Append messages to an existing variable. Only string
550-
variables can be used. {not in Vi}
541+
variables can be used.
551542

552-
:redi[r] END End redirecting messages. {not in Vi}
543+
:redi[r] END End redirecting messages.
553544

554545
*:filt* *:filter*
555546
:filt[er][!] {pat} {command}
@@ -570,17 +561,19 @@ N *+X11* Unix only: can restore window title |X11|
570561
the output, not necessarily the whole line. Only some
571562
commands support filtering, try it out to check if it
572563
works. Some of the commands that support filtering:
573-
|:#| - filter whole line
574-
|:command| - filter by command name
575-
|:files| - filter by file name
576-
|:highlight| - filter by highlight group
577-
|:jumps| - filter by file name
578-
|:let| - filter by variable name
579-
|:list| - filter whole line
580-
|:llist| - filter by file name or module name
581-
|:oldfiles| - filter by file name
582-
|:clist| - filter by file name or module name
583-
|:set| - filter by variable name
564+
|:#| - filter whole line
565+
|:clist| - filter by file name or module name
566+
|:command| - filter by command name
567+
|:files| - filter by file name
568+
|:highlight| - filter by highlight group
569+
|:jumps| - filter by file name
570+
|:let| - filter by variable name
571+
|:list| - filter whole line
572+
|:llist| - filter by file name or module name
573+
|:marks| - filter by text in the current file,
574+
or file name for other files
575+
|:oldfiles| - filter by file name
576+
|:set| - filter by variable name
584577

585578
Only normal messages are filtered, error messages are
586579
not.
@@ -689,12 +682,11 @@ K Run a program to lookup the keyword under the
689682
< - When 'keywordprg' is equal to "man -s", a count
690683
before "K" is inserted after the "-s". If there is
691684
no count, the "-s" is removed.
692-
{not in Vi}
693685

694686
*v_K*
695687
{Visual}K Like "K", but use the visually highlighted text for
696688
the keyword. Only works when the highlighted text is
697-
not more than one line. {not in Vi}
689+
not more than one line.
698690

699691
[N]gs *gs* *:sl* *:sleep*
700692
:[N]sl[eep] [N] [m] Do nothing for [N] seconds. When [m] is included,
@@ -707,7 +699,7 @@ K Run a program to lookup the keyword under the
707699
< Can be interrupted with CTRL-C (CTRL-Break on MS-DOS).
708700
"gs" stands for "goto sleep".
709701
While sleeping the cursor is positioned in the text,
710-
if at a visible position. {not in Vi}
702+
if at a visible position.
711703
Also process the received netbeans messages. {only
712704
available when compiled with the |+netbeans_intg|
713705
feature}

0 commit comments

Comments
 (0)