Skip to content

Commit 3692640

Browse files
authored
Merge pull request #1108 from tsuyoshicho/update/20220612/change
Update change.{txt,jax}
2 parents 6f0d41f + e9812b1 commit 3692640

File tree

2 files changed

+35
-26
lines changed

2 files changed

+35
-26
lines changed

doc/change.jax

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 9.0. Last change: 2022 Mar 05
1+
*change.txt* For Vim バージョン 9.0. Last change: 2022 May 26
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1141,12 +1141,14 @@ NOTE: 以前のバージョンでは CTRL-V が特別に扱われていた。こ
11411141
サイズと、選択領域の角が既存の文字上にあるかどうかにもよる。(実装上の詳細:実際
11421142
の動作は、まずレジスタの中身を選択領域の後に貼り付け、その後で選択領域を削除す
11431143
るようになっている)
1144-
'p' だとそれまで選択されていたテキストが無名レジスタに保存される。これは選択テ
1145-
キストを別の場所にプットするのに便利である。しかし、同じ変更を繰り返せない。
1146-
'P' だと無名レジスタは変更されず、同じ変更を繰り返すことができる。しかし削除さ
1147-
れたテキストは使えない。そうしたいなら 'p' をほかのレジスタで使う必要がある。
1148-
例えば、コピーしたいテキストをヤンクして、選択したテキストを "0p で置き換える。
1149-
これを好きなだけ繰り返し、そして無名レジスタはプットするたびに変わる。
1144+
|p| だとそれまで選択されていたテキストが無名レジスタに保存される(そして場合に
1145+
よっては選択テキストおよび/またはクリップボードも)。これは選択テキストを別の場
1146+
所にプットするのに便利である。しかし、同じ変更を繰り返せない。
1147+
|P| を使用すると、無名レジスタは変更されず(そして選択テキストもクリップボード
1148+
も)、同じ変更を繰り返すことができる。しかし削除されたテキストは使えない。それ
1149+
が必要な場合は、別のレジスタで |p| を使用することができる。例えば、コピーする
1150+
テキストをヤンクし、置き換えるテキストをビジュアル選択して "0p を使用する。こ
1151+
れは何度でも好きなだけ繰り返すことができ、無名レジスタは毎回変更される。
11501152

11511153
矩形ビジュアルモードで一行のみをヤンクしたとき、それをビジュアル選択した範囲に
11521154
貼り付けると、選択範囲にその一行が貼り付けされる (つまり貼り付けた行のブロック
@@ -1231,8 +1233,8 @@ Note 文字単位のコピーコマンドの後、コピーされたテキスト
12311233
新しいテキストの前に改行が挿入される。
12321234

12331235
5. 読みとり専用レジスタ ": と ". と "%
1234-
読みとり専用レジスタには '%' と '#' と ':' と '.' がある。コマンド "p", "P",
1235-
":put" および CTRL-R でのみ使うことができる。
1236+
読みとり専用レジスタには '%' と ':' と '.' がある。コマンド "p", "P", ":put"
1237+
および CTRL-R でのみ使うことができる。
12361238
*quote_.* *quote.* *E29*
12371239
". 最後に挿入されたテキストが蓄えられる (挿入モードのコマンド
12381240
CTRL-ACTRL-@ で挿入されるものと同じテキストである)。 Note:
@@ -1625,6 +1627,9 @@ r 挿入モードで <Enter> を打ち込んだ後に、現在のコメント開
16251627
o ノーマルモードで 'o', 'O' を打ち込んだ後に、現在のコメント開始文字列を
16261628
自動的に挿入する。特定の場所でコメントが不要な場合は、CTRL-U を使用し
16271629
て素早く削除する。|i_CTRL-U|
1630+
*fo-/*
1631+
/ 'o' が含まれている場合: 文の後の // コメントがある場合にコメント開始文
1632+
字列を挿入せず、// から行が始まる場合のみ挿入する。
16281633
*fo-q*
16291634
q "gq" でコメントを整形する。
16301635
NOTE 整形は空行やコメント開始文字列のみの行は変更しないことに注意。新
@@ -1678,9 +1683,9 @@ B 行の連結時に、マルチバイト文字同士の間に空白を挿入し
16781683
*fo-1*
16791684
1 1文字の単語の後では改行しない。代わりにその前で改行される (可能ならば)。
16801685
*fo-]*
1681-
] textwidth を厳密に尊重する。このフラグを設定すると、禁則処理 {訳註:
1682-
ら下り}で許可されない限り、行の長さを textwidth を超えないようにする。
1683-
主に CJK 用で、'encoding' が "utf-8" の場合のみ機能する。
1686+
] 'textwidth' を厳密に尊重する。このフラグを設定すると、禁則処理 {訳註:
1687+
ぶら下り}で許可されない限り、行の長さを 'textwidth' を超えないようにす
1688+
る。主に CJK 用で、'encoding' が "utf-8" の場合のみ機能する。
16841689
*fo-j*
16851690
j 可能ならば、行を連結する際にコメントリーダーを削除する。例えば、以下の
16861691
行を連結する場合:

en/change.txt

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 9.0. Last change: 2022 Mar 05
1+
*change.txt* For Vim version 9.0. Last change: 2022 May 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1177,14 +1177,15 @@ register. With blockwise selection it also depends on the size of the block
11771177
and whether the corners are on an existing character. (Implementation detail:
11781178
it actually works by first putting the register after the selection and then
11791179
deleting the selection.)
1180-
With 'p' the previously selected text is put in the unnamed register. This is
1181-
useful if you want to put that text somewhere else. But you cannot repeat the
1182-
same change.
1183-
With 'P' the unnamed register is not changed, you can repeat the same change.
1184-
But the deleted text cannot be used. If you do need it you can use 'p' with
1185-
another register. E.g., yank the text to copy, Visually select the text to
1186-
replace and use "0p . You can repeat this as many times as you like, and the
1187-
unnamed register will be changed each time.
1180+
With |p| the previously selected text is put in the unnamed register (and
1181+
possibly the selection and/or clipboard). This is useful if you want to put
1182+
that text somewhere else. But you cannot repeat the same change.
1183+
With |P| the unnamed register is not changed (and neither the selection or
1184+
clipboard), you can repeat the same change. But the deleted text cannot be
1185+
used. If you do need it you can use |p| with another register. E.g., yank
1186+
the text to copy, Visually select the text to replace and use "0p . You can
1187+
repeat this as many times as you like, and the unnamed register will be
1188+
changed each time.
11881189

11891190
When you use a blockwise Visual mode command and yank only a single line into
11901191
a register, a paste on a visual selected area will paste that single line on
@@ -1271,7 +1272,7 @@ to their previous contents. When the '>' flag is present in 'cpoptions' then
12711272
a line break is inserted before the appended text.
12721273

12731274
5. Read-only registers ":, ". and "%
1274-
These are '%', '#', ':' and '.'. You can use them only with the "p", "P",
1275+
These are '%', ':' and '.'. You can use them only with the "p", "P",
12751276
and ":put" commands and with CTRL-R.
12761277
*quote_.* *quote.* *E29*
12771278
". Contains the last inserted text (the same as what is inserted
@@ -1672,9 +1673,9 @@ readability.
16721673

16731674
letter meaning when present in 'formatoptions' ~
16741675
*fo-t*
1675-
t Auto-wrap text using textwidth
1676+
t Auto-wrap text using 'textwidth'
16761677
*fo-c*
1677-
c Auto-wrap comments using textwidth, inserting the current comment
1678+
c Auto-wrap comments using 'textwidth', inserting the current comment
16781679
leader automatically.
16791680
*fo-r*
16801681
r Automatically insert the current comment leader after hitting
@@ -1683,6 +1684,9 @@ r Automatically insert the current comment leader after hitting
16831684
o Automatically insert the current comment leader after hitting 'o' or
16841685
'O' in Normal mode. In case comment is unwanted in a specific place
16851686
use CTRL-U to quickly delete it. |i_CTRL-U|
1687+
*fo-/*
1688+
/ When 'o' is included: do not insert the comment leader for a //
1689+
comment after a statement, only when // is at the start of the line.
16861690
*fo-q*
16871691
q Allow formatting of comments with "gq".
16881692
Note that formatting will not change blank lines or lines containing
@@ -1745,8 +1749,8 @@ B When joining lines, don't insert a space between two multibyte
17451749
1 Don't break a line after a one-letter word. It's broken before it
17461750
instead (if possible).
17471751
*fo-]*
1748-
] Respect textwidth rigorously. With this flag set, no line can be
1749-
longer than textwidth, unless line-break-prohibition rules make this
1752+
] Respect 'textwidth' rigorously. With this flag set, no line can be
1753+
longer than 'textwidth', unless line-break-prohibition rules make this
17501754
impossible. Mainly for CJK scripts and works only if 'encoding' is
17511755
"utf-8".
17521756
*fo-j*

0 commit comments

Comments
 (0)