|
1 |
| -*change.txt* For Vim version 9.1. Last change: 2024 Jun 23 |
| 1 | +*change.txt* For Vim version 9.1. Last change: 2024 Jul 14 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -95,13 +95,14 @@ For inserting text see |insert.txt|.
|
95 | 95 | These commands delete text. You can repeat them with the `.` command
|
96 | 96 | (except `:d`) and undo them. Use Visual mode to delete blocks of text. See
|
97 | 97 | |registers| for an explanation of registers.
|
98 |
| - |
| 98 | + *d-special* |
99 | 99 | An exception for the d{motion} command: If the motion is not linewise, the
|
100 | 100 | start and end of the motion are not in the same line, and there are only
|
101 | 101 | blanks before the start and there are no non-blanks after the end of the
|
102 | 102 | motion, the delete becomes linewise. This means that the delete also removes
|
103 | 103 | the line of blanks that you might expect to remain. Use the |o_v| operator to
|
104 |
| -force the motion to be characterwise. |
| 104 | +force the motion to be characterwise or remove the "z" flag from 'cpoptions' |
| 105 | +(see |cpo-z|) to disable this peculiarity. |
105 | 106 |
|
106 | 107 | Trying to delete an empty region of text (e.g., "d0" in the first column)
|
107 | 108 | is an error when 'cpoptions' includes the 'E' flag.
|
@@ -251,7 +252,7 @@ blank; this is probably a bug, because "dw" deletes all the blanks; use the
|
251 | 252 |
|
252 | 253 | If you prefer "cw" to include the space after a word, use this mapping: >
|
253 | 254 | :map cw dwi
|
254 |
| -Or use "caw" (see |aw|). |
| 255 | +Alternatively use "caw" (see also |aw| and |cpo-z|). |
255 | 256 |
|
256 | 257 | *:c* *:ch* *:change*
|
257 | 258 | :{range}c[hange][!] Replace lines of text with some different text.
|
|
0 commit comments