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 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.

How do you edit a VI file in Unix?

Work

  1. Introduction.
  2. 1Select the file by typing vi index. …
  3. 2Use the arrow keys to move the cursor to the part of the file you want to change.
  4. 3Use the i command to enter Insert mode.
  5. 4Use the Delete key and the letters on the keyboard to make the correction.
  6. 5Press the Esc key to get back to Normal mode.
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest