Deletion Commands
Keystrokes | Command name | Description |
|---|---|---|
Del | backward-delete-char | Delete previous character. |
C-d | delete-char | Delete character under cursor. |
M-Del | backward-kill-word | Delete previous word. |
M-d | kill-word | Delete the word the cursor is on. |
C-k | kill-line | Delete from cursor to end of line. |
M-k | kill-sentence | Delete sentence the cursor is on. |
C-x Del | backward-kill-sentence | Delete previous sentence. |
C-y | yank | Restore what you’ve deleted. |
C-w | kill-region | Delete a marked region (see next section). |
(none) | backward-kill-paragraph | Delete previous paragraph. |
(none) | kill-paragraph | Delete from the cursor to the end of the paragraph. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access