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 from point to beginning of word. |
|
M-d |
kill-word |
Delete from point to end of word. |
|
C-k |
kill-line |
Delete from cursor to end of line. |
|
M-k |
kill-sentence |
Delete from point to end of sentence. |
|
C-x Del |
backward-kill-sentence |
Delete from point to beginning of 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