Skip to content

Commit 087228d

Browse files
authored
Merge pull request #1173 from tsuyoshicho/update/20221016/undo
Update undo.{txt,jax}
2 parents 4ea0070 + c4974ae commit 087228d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

doc/undo.jax

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ undo されます。
105105
106106
この後で "u" コマンドを実行すると delete コマンドとその直前の変更が undo され
107107
ます。
108-
*undo-break*
109-
反対の動作、つまり変更を二つの undo ブロックに分けるには、挿入モードでCTRL-G u
110-
を使います。挿入コマンドを部分ごと (例えば文単位) に undo できるようにしたい場
111-
合に便利です|i_CTRL-G_u|
108+
*undo-break* *undo-close-block*
109+
反対の動作、つまり次の変更で新しい undo ブロックを使うには、挿入モードで
110+
CTRL-G u を使います。挿入コマンドを部分ごと (例えば文単位) に undo できるよう
111+
にしたい場合に便利です|i_CTRL-G_u|
112112

113-
'undolevels' の値を設定したときも undo は区切られます。新しい値と古い値が同じ
114-
でもそうなります|Vim9| script では: >
113+
'undolevels' の値を設定したときも undo のブロックが閉じられます。新しい値と古
114+
い値が同じでもそうなります|Vim9| script では: >
115115
&undolevels = &undolevels
116116
旧来のスクリプトでは: >
117117
let &undolevels = &undolevels
@@ -191,7 +191,7 @@ Note: テキスト状態は、'undolevels' により undo 情報がクリアさ
191191
時間を移動すると一度に複数の変更が現れることもあります。これは undo ツリーを移
192192
動して新しい変更を加えたときに起こります。
193193

194-
194+
195195

196196
次のテキストがあります:
197197
one two three ~

en/undo.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ change again. But you can do something like this: >
105105
106106
After this a "u" command will undo the delete command and the previous
107107
change.
108-
*undo-break*
109-
To do the opposite, break a change into two undo blocks, in Insert mode use
110-
CTRL-G u. This is useful if you want an insert command to be undoable in
108+
*undo-break* *undo-close-block*
109+
To do the opposite, use a new undo block for the next change, in Insert mode
110+
use CTRL-G u. This is useful if you want an insert command to be undoable in
111111
parts. E.g., for each sentence. |i_CTRL-G_u|
112112

113-
Setting the value of 'undolevels' also breaks undo. Even when the new value
114-
is equal to the old value. In |Vim9| script: >
113+
Setting the value of 'undolevels' also closes the undo block. Even when the
114+
new value is equal to the old value. In |Vim9| script: >
115115
&undolevels = &undolevels
116116
In legacy script: >
117117
let &undolevels = &undolevels

0 commit comments

Comments
 (0)