Command Mode: Deleting and Changing Text
This section describes the commands to delete and replace, or change, text in the document you are editing. The Undo command is also covered because it allows you to restore deleted or changed text.
Undoing Changes
The Undo command, u, restores text that you just deleted or changed by mistake. A single Undo command restores only the most recently deleted text. If you delete a line and then change a word, the first Undo restores only the changed word; you have to give a second Undo command to restore the deleted line. The U command restores the last line you changed to the way it was before you started changing it, even after several changes.
Deleting Characters
The x command deletes the current character. ...
Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.