File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ undo されます。
105
105
106
106
この後で "u" コマンドを実行すると delete コマンドとその直前の変更が undo され
107
107
ます。
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 |
112
112
113
- 'undolevels' の値を設定したときも undo は区切られます。新しい値と古い値が同じ
114
- でもそうなります 。| Vim9 | script では: >
113
+ 'undolevels' の値を設定したときも undo のブロックが閉じられます。新しい値と古
114
+ い値が同じでもそうなります 。| Vim9 | script では: >
115
115
&undolevels = &undolevels
116
116
旧来のスクリプトでは: >
117
117
let &undolevels = &undolevels
@@ -191,7 +191,7 @@ Note: テキスト状態は、'undolevels' により undo 情報がクリアさ
191
191
時間を移動すると一度に複数の変更が現れることもあります。これは undo ツリーを移
192
192
動して新しい変更を加えたときに起こります。
193
193
194
- 例
194
+ ☆ 例
195
195
196
196
次のテキストがあります:
197
197
one two three ~
Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ change again. But you can do something like this: >
105
105
106
106
After this a "u" command will undo the delete command and the previous
107
107
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
111
111
parts. E.g., for each sentence. | i_CTRL-G_u |
112
112
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: >
115
115
&undolevels = &undolevels
116
116
In legacy script: >
117
117
let &undolevels = &undolevels
You can’t perform that action at this time.
0 commit comments