How Does Vi Editor Work in Unix?
Contents How Do I Use Vi Editor in Linux? in Insert Mode, You Can Enter Text, Use the Enter Key to Go to a New Line, Use the Arrow Keys to Navigate Text, and...
Contents
How do I use vi editor in Linux?
In Insert mode, you can enter text, use the Enter key to go to a new line, use the arrow keys to navigate text, and use vi as a free-form text editor.
…
More Linux resources.
| Command | Purpose |
|---|---|
| i | Switch to Insert mode. |
| Esc | Switch to Command mode. |
| :w | Save and continue editing. |
| :wq or ZZ | Save and quit/exit vi. |
Must Read
How do you edit a VI file in Unix?
Work
- Introduction.
- 1Select the file by typing vi index. …
- 2Use the arrow keys to move the cursor to the part of the file you want to change.
- 3Use the i command to enter Insert mode.
- 4Use the Delete key and the letters on the keyboard to make the correction.
- 5Press the Esc key to get back to Normal mode.