Vim/Deleting
From Debuntu
< Vim
In escape mode:
| Command | Action |
|---|---|
| x | delete character |
| [count]x | delete [count] character under and after cursor |
| [count]X | delete [count] character before cursor |
| dd | delete current line |
| [count]dd | delete [count] lines from cursor |
| d^ | delete from cursor (not included) to begin of line |
| d$ or D | delete from cursor to end of line |
| [count]d$ or [count]D | delete from cursor to end of line and [count] -1 lines |
| dw | delete word forward |
| db | delete word backward |
| [count]d{motion} | delete text that motion moves over (up/down = lines, left/right = characters ) |
| :[range]d [count] | delete range |