Mercurial > vim
comparison runtime/doc/undo.txt @ 29450:67f31c24291b
Update runtime files
Commit: https://github.com/vim/vim/commit/b529cfbd04c02e31cfa88f2c8d88b5ff532d4f7d
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 25 15:42:07 2022 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 Jul 2022 16:45:06 +0200 |
parents | f8116058ca76 |
children | 94f4a488412e |
comparison
equal
deleted
inserted
replaced
29449:25b27a637e86 | 29450:67f31c24291b |
---|---|
103 | 103 |
104 :undojoin | delete | 104 :undojoin | delete |
105 | 105 |
106 After this a "u" command will undo the delete command and the previous | 106 After this a "u" command will undo the delete command and the previous |
107 change. | 107 change. |
108 *undo-break* | 108 *undo-break* *undo-close-block* |
109 To do the opposite, break a change into two undo blocks, in Insert mode use | 109 To do the opposite, use a new undo block for the next change, in Insert mode |
110 CTRL-G u. This is useful if you want an insert command to be undoable in | 110 use CTRL-G u. This is useful if you want an insert command to be undoable in |
111 parts. E.g., for each sentence. |i_CTRL-G_u| | 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 | 113 Setting the value of 'undolevels' also closes the undo block. Even when the |
114 is equal to the old value. In |Vim9| script: > | 114 new value is equal to the old value. In |Vim9| script: > |
115 &undolevels = &undolevels | 115 &undolevels = &undolevels |
116 In legacy script: > | 116 In legacy script: > |
117 let &undolevels = &undolevels | 117 let &undolevels = &undolevels |
118 | 118 |
119 ============================================================================== | 119 ============================================================================== |