There are two modes in the Vi editor: Command and Insert. Vi puts you in Command mode when you first open a file. In command mode, all keyboard functions other than text entry are available, including navigation, deletion, copying, and pasting.
How insert mode to save the file work?
Press I to access Insert mode. You can add text, move to a new line with the Enter key or the arrow keys while in Insert mode, and use vi as a free-form text editor. once, press the Esc key
Enter Command mode by pressing Esc and typing:q if you've made mistakes when editing and wish to undo (abandon) any unsaved changes. This command terminates Vi without preserving any modifications.
To learn more about Vi editor from the given link:
https://brainly.com/question/17193196
#SPJ4