Skip to content

Commit ef72ea9

Browse files
authored
Merge pull request #2155 from h-east/update-change
Update change.{txt,jax}
2 parents 620f0e5 + 10836b8 commit ef72ea9

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

doc/change.jax

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 9.1. Last change: 2025 Jun 26
1+
*change.txt* For Vim バージョン 9.1. Last change: 2025 Jul 15
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -960,21 +960,25 @@ NOTE: 以前のバージョンでは CTRL-V が特別に扱われていた。こ
960960

961961
4.4 タブの変換 *change-tabs*
962962
*:ret* *:retab* *:retab!*
963-
:[range]ret[ab][!] [new_tabstop]
964-
新たに指定されたタブストップ (タブ幅) に基づき、<Tab>
965-
を含む空白の連続を全て、新しい空白と <Tab> の列に置き
966-
換える。新たなタブストップの指定がないか0が指定された
967-
ときは、Vimはオプション 'tabstop' の現在の値を使用す
968-
る。'tabstop' の現在の値は、既存のタブの幅を計るために
969-
常に使用される。'!' を付けると、Vimは通常の空白のみの
970-
列も、適切なタブに置き換える。
971-
'expandtab' がオンのとき、Vimは全てのタブを適切な数の
972-
空白に置き換える。
973-
このコマンドは 'tabstop' を新たに指定された値に設定す
974-
る {訳注: この事実は重要である}。ファイル全体に適用さ
975-
れたときは (それが既定の動作)、ファイルの見かけに変化
976-
が起こることはないはずだ。
977-
注意: このコマンドはCプログラム中の文字列内部にある
963+
:[range]ret[ab][!] [-indentonly] [{new-tabstop}]
964+
{new-tabstop} を使用し、<Tab> を含むすべての空白文字の
965+
連続を新しい空白文字の文字列に置き換える。
966+
{new-tabstop} を指定しないか 0 を指定した場合、Vim は
967+
現在の 'tabstop' の値を使用する。
968+
'tabstop' の現在の値は、既存のタブの幅を計算する際に常
969+
に使用される。
970+
! を付けると、Vim は通常の空白のみの文字列も適切な箇所
971+
でタブに置き換える。
972+
'expandtab' をオンにすると、Vim はすべてのタブを適切な
973+
数の空白に置き換える。
974+
このコマンドは 'tabstop'{new-tabstop} に設定する。
975+
ファイル全体に対して実行した場合 (デフォルト)、目に見
976+
える変化はない。
977+
978+
[-indentonly] が指定された場合、先頭の空白のみが対象と
979+
なる。それ以外の連続する空白は変更されない。
980+
981+
Warning: このコマンドはCプログラム中の文字列内部にある
978982
<Tab> 文字も修正する。これを避けるためには、プログラム
979983
内では "\t" を使うとよい (そうでなくても、これはよい習
980984
慣である)。

en/change.txt

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 9.1. Last change: 2025 Jun 26
1+
*change.txt* For Vim version 9.1. Last change: 2025 Jul 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -991,22 +991,26 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
991991

992992
4.4 Changing tabs *change-tabs*
993993
*:ret* *:retab* *:retab!*
994-
:[range]ret[ab][!] [new_tabstop]
994+
:[range]ret[ab][!] [-indentonly] [{new-tabstop}]
995995
Replace all sequences of white-space containing a
996-
<Tab> with new strings of white-space using the new
997-
tabstop value given. If you do not specify a new
998-
tabstop size or it is zero, Vim uses the current value
999-
of 'tabstop'.
996+
<Tab> with new strings of white-space using
997+
{new-tabstop}. If you do not specify {new-tabstop} or
998+
it is zero, Vim uses the current value of 'tabstop'.
1000999
The current value of 'tabstop' is always used to
10011000
compute the width of existing tabs.
10021001
With !, Vim also replaces strings of only normal
10031002
spaces with tabs where appropriate.
10041003
With 'expandtab' on, Vim replaces all tabs with the
10051004
appropriate number of spaces.
1006-
This command sets 'tabstop' to the new value given,
1007-
and if performed on the whole file, which is default,
1008-
should not make any visible change.
1009-
Careful: This command modifies any <Tab> characters
1005+
This command sets 'tabstop' to {new-tabstop} and if
1006+
performed on the whole file, which is default, should
1007+
not make any visible change.
1008+
1009+
When [-indentonly] is specified, only the leading
1010+
white-space will be targeted. Any other consecutive
1011+
white-space will not be changed.
1012+
1013+
Warning: This command modifies any <Tab> characters
10101014
inside of strings in a C program. Use "\t" to avoid
10111015
this (that's a good habit anyway).
10121016
`:retab!` may also change a sequence of spaces by

0 commit comments

Comments
 (0)