d
The
Operator
The d command in Vim
Operator
delete
Delete operator — removes the text covered by the motion into a register (default: unnamed
"). Double dd deletes the whole line.Examples
dd(delete line)dw(delete word)d$ or D (delete to end)diw(delete inner word)3dd(delete 3 lines)
Related plugin
tpope/vim-surround — ds{char} deletes surrounding character. e.g. ds" removes surrounding quotes, ds) removes parens.
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related operators