Quick Answer: How Do I Use Vi Editor in Ubuntu?
Contents

How do I edit a file in Ubuntu VI?

If you want to edit a file using terminal, press i to go into insert mode. Edit your file and press ESC and then :w to save changes and :q to quit.

How do I use vi editor?

The vi editor has two modes: Command and Insert. When you first open a file with vi, you are in Command mode. Command mode means that you can use keyboard keys to navigate, delete, copy, paste, and do a number of other tasks—except entering text. To enter Insert mode, press i .

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest