Skip to content

Commit dd78773

Browse files
authored
Merge pull request #903 from vim-jp/miscellaneous-updates
Update {autocmd,change,cmdline,editing}.{txt,jax}
2 parents f65e9d2 + 155c275 commit dd78773

File tree

8 files changed

+56
-31
lines changed

8 files changed

+56
-31
lines changed

doc/autocmd.jax

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim バージョン 8.2. Last change: 2021 Jan 28
1+
*autocmd.txt* For Vim バージョン 8.2. Last change: 2021 Mar 13
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1499,9 +1499,13 @@ NOTE オプション 'eventignore' はここにも適用されることに注意
14991499
*:doautoa* *:doautoall*
15001500
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
15011501
":doautocmd" と似ているが、読み込まれたバッファそれぞ
1502-
れに自動コマンドを適用する。[fname]は自動コマンドを選
1503-
択するのに使われる。コマンドを適用するバッファではな
1504-
い。{訳注: |:autocmd|{pat}に使う?}
1502+
れに自動コマンドを適用する。カレントバッファは最後に処
1503+
理される。
1504+
1505+
Note [fname] は自動コマンドを選択するのに使われる。コ
1506+
マンドを適用するバッファではない {訳注: |:autocmd|
1507+
|{pat}| に使われる}。
1508+
15051509
Note: このコマンドで、バッファを削除したり、バッファを
15061510
変えたり、バッファの内容を変えるような自動コマンドを実
15071511
行しないこと。結果は予期できない。このコマンドは、オプ

doc/change.jax

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 8.2. Last change: 2021 Jan 21
1+
*change.txt* For Vim バージョン 8.2. Last change: 2021 Mar 01
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -629,6 +629,8 @@ MS-Windows ではシステム関数 GetTempFileName() が使われる。
629629
`:substitute` とフラグ 'c', 'g', 'i', 'I', 'r' の間の
630630
空白は必要不可欠ではない。しかしスクリプト内では、混乱
631631
しないように空白を入れておくのはよい考えである。
632+
`:substitute` を繰り返す2もしくは3文字のコマンド群も参
633+
照のこと。|:substitute-repeat| で説明されている。
632634

633635
:[range]~[&][flags] [count] *:~*
634636
最後の置換を同じ置換文字列で、最後の検索パターン {訳注:
@@ -849,30 +851,35 @@ NOTE: 以前のバージョンでは CTRL-V が特別に扱われていた。こ
849851
*:sge* *:sgi* *:sgI* *:sgl* *:sgn* *:sgp* *:sgr* *:sI* *:si*
850852
*:sic* *:sIc* *:sie* *:sIe* *:sIg* *:sIl* *:sin* *:sIn* *:sIp*
851853
*:sip* *:sIr* *:sir* *:sr* *:src* *:srg* *:sri* *:srI* *:srl*
852-
*:srn* *:srp*
854+
*:srn* *:srp* *:substitute-repeat*
853855
2文字もしくは3文字の :substitute コマンド ~
854856

857+
これらのコマンドは前回の `:substitute` コマンドを与えられたフラグを使って繰り
858+
返す。最初の文字は常に "s" であり、1個か2個のフラグ文字が続く。例えば `:sce`
859+
`:s///ce` のように動作する。この表は可能な組み合わせの一覧である。別のコマ
860+
ンドの短縮形となるものは使用できない。
861+
855862
:substitute コマンド一覧
856863
| c e g i I n p l r
857-
| c :sc :sce :scg :sci :scI :scn :scp :scl ---
864+
| c :sc :sce :scg :sci :scI :scn :scp :scl
858865
| e
859866
| g :sgc :sge :sg :sgi :sgI :sgn :sgp :sgl :sgr
860-
| i :sic :sie --- :si :siI :sin :sip --- :sir
867+
| i :sic :sie :si :siI :sin :sip :sir
861868
| I :sIc :sIe :sIg :sIi :sI :sIn :sIp :sIl :sIr
862869
| n
863870
| p
864871
| l
865-
| r :src --- :srg :sri :srI :srn :srp :srl :sr
872+
| r :src :srg :sri :srI :srn :srp :srl :sr
866873

867874
例外:
868-
:scr is `:scriptnames`
869-
:se is `:set`
870-
:sig is `:sign`
871-
:sil is `:silent`
872-
:sn is `:snext`
873-
:sp is `:split`
874-
:sl is `:sleep`
875-
:sre is `:srewind`
875+
:scr `:scriptnames`
876+
:se `:set`
877+
:sig `:sign`
878+
:sil `:silent`
879+
:sn `:snext`
880+
:sp `:split`
881+
:sl `:sleep`
882+
:sre `:srewind`
876883

877884

878885
式で置換する *sub-replace-expression*

doc/cmdline.jax

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim バージョン 8.2. Last change: 2021 Jan 26
1+
*cmdline.txt* For Vim バージョン 8.2. Last change: 2021 Apr 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -572,9 +572,11 @@ Exコマンドはいくつかの特徴を持っている。
572572
:global
573573
:help
574574
:helpfind
575+
:helpgrep
575576
:lcscope
576577
:ldo
577578
:lfdo
579+
:lhelpgrep
578580
:make
579581
:normal
580582
:perl

doc/editing.jax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim バージョン 8.2. Last change: 2021 Jan 08
1+
*editing.txt* For Vim バージョン 8.2. Last change: 2021 Apr 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar

en/autocmd.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.2. Last change: 2021 Jan 28
1+
*autocmd.txt* For Vim version 8.2. Last change: 2021 Mar 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1519,9 +1519,11 @@ option will not cause any commands to be executed.
15191519
*:doautoa* *:doautoall*
15201520
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
15211521
Like ":doautocmd", but apply the autocommands to each
1522-
loaded buffer. Note that [fname] is used to select
1523-
the autocommands, not the buffers to which they are
1524-
applied.
1522+
loaded buffer. The current buffer is done last.
1523+
1524+
Note that [fname] is used to select the autocommands,
1525+
not the buffers to which they are applied.
1526+
15251527
Careful: Don't use this for autocommands that delete a
15261528
buffer, change to another buffer or change the
15271529
contents of a buffer; the result is unpredictable.

en/change.txt

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 8.2. Last change: 2021 Jan 21
1+
*change.txt* For Vim version 8.2. Last change: 2021 Mar 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -649,6 +649,8 @@ For other systems the tmpnam() library function is used.
649649
The space between `:substitute` and the 'c', 'g',
650650
'i', 'I' and 'r' flags isn't required, but in scripts
651651
it's a good idea to keep it to avoid confusion.
652+
Also see the two and three letter commands to repeat
653+
:substitute below |:substitute-repeat|.
652654

653655
:[range]~[&][flags] [count] *:~*
654656
Repeat last substitute with same substitute string
@@ -877,20 +879,26 @@ either the first or second pattern in parentheses did not match, so either
877879
*:sge* *:sgi* *:sgI* *:sgl* *:sgn* *:sgp* *:sgr* *:sI* *:si*
878880
*:sic* *:sIc* *:sie* *:sIe* *:sIg* *:sIl* *:sin* *:sIn* *:sIp*
879881
*:sip* *:sIr* *:sir* *:sr* *:src* *:srg* *:sri* *:srI* *:srl*
880-
*:srn* *:srp*
882+
*:srn* *:srp* *:substitute-repeat*
881883
2-letter and 3-letter :substitute commands ~
882884

885+
These commands repeat the previous `:substitute` command with the given flags.
886+
The first letter is always "s", followed by one or two of the possible flag
887+
characters. For example `:sce` works like `:s///ce`. The table lists the
888+
possible combinations, not all flags are possible, because the command is
889+
short for another command.
890+
883891
List of :substitute commands
884892
| c e g i I n p l r
885-
| c :sc :sce :scg :sci :scI :scn :scp :scl ---
893+
| c :sc :sce :scg :sci :scI :scn :scp :scl
886894
| e
887895
| g :sgc :sge :sg :sgi :sgI :sgn :sgp :sgl :sgr
888-
| i :sic :sie --- :si :siI :sin :sip --- :sir
896+
| i :sic :sie :si :siI :sin :sip :sir
889897
| I :sIc :sIe :sIg :sIi :sI :sIn :sIp :sIl :sIr
890898
| n
891899
| p
892900
| l
893-
| r :src --- :srg :sri :srI :srn :srp :srl :sr
901+
| r :src :srg :sri :srI :srn :srp :srl :sr
894902

895903
Exceptions:
896904
:scr is `:scriptnames`

en/cmdline.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.2. Last change: 2021 Jan 26
1+
*cmdline.txt* For Vim version 8.2. Last change: 2021 Apr 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -597,9 +597,11 @@ followed by another Vim command:
597597
:global
598598
:help
599599
:helpfind
600+
:helpgrep
600601
:lcscope
601602
:ldo
602603
:lfdo
604+
:lhelpgrep
603605
:make
604606
:normal
605607
:perl

en/editing.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 8.2. Last change: 2021 Jan 08
1+
*editing.txt* For Vim version 8.2. Last change: 2021 Apr 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1253,7 +1253,7 @@ For versions of Vim where browsing is not supported, the command is executed
12531253
unmodified.
12541254

12551255
*browsefilter*
1256-
For MS Windows and GTK, you can modify the filters that are used in the browse
1256+
For MS-Windows and GTK, you can modify the filters that are used in the browse
12571257
dialog. By setting the g:browsefilter or b:browsefilter variables, you can
12581258
change the filters globally or locally to the buffer. The variable is set to
12591259
a string in the format "{filter label}\t{pattern};{pattern}\n" where {filter

0 commit comments

Comments
 (0)