How To Use Vi Editor In Ubuntu?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open Terminal: You can open Terminal either through the Applications menu, by pressing Ctrl+Alt+T, or by typing “Terminal” in Ubuntu’s Dash.
2. Enter the following command to open Vi editor: vi
3. When the editor launches, you’ll see the last line of output shows “– INSERT –” which indicates that Vim is currently in Insert mode.
4. To begin entering text, simply type. To enter Insert mode, press i (for insert).
5. To save the file, press Esc key to go back to Normal Mode and then type :wq to save and exit the file.
6. To exit without saving any changes, press Esc key to go back to Normal Mode and then type :q! to quit without saving.