Vim Deleting Text

<Del>xDelete [count] characters under and after the cursor
XDelete [count] characters before the cursor
d{motion}Delete text that {motion} moves over
ddDelete [count] lines
DDelete the characters under the cursor until the end of the line
{Visual}x{Visual}dDelete the highlighted textFor {Visual} see Selecting Text.
{Visual}CTRL-H{Visual}<BS>Delete the highlighted text when in Select mode
{Visual}X{Visual}DDelete the highlighted lines
:[range]d[elete]Delete [range] linesDefault: current line.
:[range]d[elete] {count}Delete {count} lines, starting with [range]

Leave a Reply

Your email address will not be published. Required fields are marked *