How do I delete or change an entire paragraph of text in one motion?
The dap and dip commands use Vim's paragraph text objects to delete an entire block of contiguous text in a single motion.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#delete
#motions
How do I quickly delete all the arguments inside a function call?
The di( command deletes everything inside the nearest pair of parentheses without removing the parentheses themselves.
category:
editing
tags:
#editing
#text-objects
#normal-mode
#delete
#code
How do I delete a word and its surrounding whitespace?
The daw command deletes a word including one side of its surrounding whitespace.
category:
editing
tags:
#editing
#text-objects
#delete
#normal-mode
How do I delete an entire line in Vim?
The dd command deletes the entire current line, regardless of where the cursor is positioned on that line.
category:
editing
tags:
#editing
#delete
#normal-mode
How do I delete the content inside an HTML tag?
The dit command deletes the text inside the nearest enclosing HTML or XML tag pair without removing the tags themselves.
category:
editing
tags:
#editing
#text-objects
#delete
#normal-mode
How do I delete from the cursor to the end of the line?
The D command deletes everything from the cursor position to the end of the current line.
category:
editing
tags:
#editing
#delete
#normal-mode
How do I delete from the cursor to the end of a word?
The de command deletes from the cursor position to the end of the current word.
category:
editing
tags:
#editing
#delete
#motions
#normal-mode
How do I delete text without overwriting my yank register?
The "d command deletes text using the black hole register ("), which discards the deleted content instead of storing it.
category:
registers
tags:
#registers
#editing
#delete
#normal-mode
How do I delete a word under the cursor?
The diw command deletes the inner word under the cursor.
category:
editing
tags:
#editing
#text-objects
#delete
#normal-mode