Modifying Commands Modifying Commands Yank Commands
d motion-command | Delete the region determined by the motion command motion-command. |
It is also possible to save the deleted text into a register you specify. For example, you can say " t 3 d w to delete three words and save it to register t. The name of a register is a lower-case letter between a and z. If you give an upper-case letter as an argument to a delete command, then the deleted text will be appended to the content of the register having the corresponding lower-case letter as its name. So, " T d w will delete a word and append it to register t. Other modifying commands also accept a register name as their argument, and we will not repeat similar explanations.
We have more delete commands as below.
d d | Delete a line. Given a count n, delete n lines. |
d r | Delete current region. |
d R | Expand current region and delete it. |
D | Delete to the end of a line (vip-kill-line ).
|
x | Delete a character after point. Given n, delete n characters
(vip-delete-char ).
|
DEL
|
Delete a character before point. Given n, delete n characters
(vip-delete-backward-char ).
|