The x key deletes the character under the cursor, while dd cuts an entire line, storing it in a buffer for pasting. To exit without saving, type :q!.
Vi How To Text Modification: Essential Editing Commands
While the arrow keys work, relying on them slows you down and creates bad habits. To change the entire current word, press c followed by w.
Unlike standard text editors, vi distinguishes between observing the document and modifying it. In Command Mode, deletions are immediate and powerful.
Vi How To Text Modification: Essential Editing Commands
To save changes and exit, type :wq. From Command Mode, you can move the cursor, delete text, or save the file without accidentally inserting characters where you do not want them.
More About Vi how to
Looking at Vi how to from another angle can help expand the discussion and give readers a second clear paragraph under the same section.
More perspective on Vi how to can make the topic easier to follow by connecting earlier points with a few simple takeaways.