How do I delete a word and its surrounding whitespace?
daw
The daw command deletes a word including one side of its surrounding whitespace.
daw
The daw command deletes a word including one side of its surrounding whitespace.
dit
The dit command deletes the text inside the nearest enclosing HTML or XML tag pair without removing the tags themselves.
ciw
The ciw command deletes the inner word under the cursor and drops you into insert mode so you can type a replacement.
ci{
The ci{ command deletes everything inside the nearest pair of curly braces {} and places you in insert mode to type a replacement.
ci(
The ci( command deletes everything inside the nearest pair of parentheses and places you in insert mode, ready to type a replacement.
diw
The diw command deletes the inner word under the cursor.
vi"
The vi" command visually selects all text inside double quotes, without including the quotes themselves.
visual-mode #visual-mode #text-objects #editing #normal-mode