Next: Basic Files Prev: Moving Point Up: Basic
Delete the character before the cursor (`delete-backward-char').
Delete the character after the cursor (`delete-char').
Kill to the end of the line (`kill-line').
Kill forward to the end of the next word (`kill-word').
Kill back to the beginning of the previous word
You already know about the DEL key which deletes the character
before the cursor. Another key, `Control-d' (`C-d' for short), deletes
the character after the cursor, causing the rest of the text on the
line to shift left. If `C-d' is typed at the end of a line, that line
and the next line are joined together.
To erase a larger amount of text, use the `C-k' key, which kills a
line at a time. If `C-k' is done at the beginning or middle of a line,
it kills all the text up to the end of the line. If `C-k' is done at
the end of a line, it joins that line and the next line.
If you delete or kill text by mistake, you can use the undo command
to get it back. Note: Undo.
Note: Killing, for more flexible ways of killing text.
automatically generated by info2www