Modifying Commands Modifying Commands Yank Commands
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.
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 (|
|x||Delete a character after point. Given n, delete n characters
||Delete a character before point. Given n, delete n characters