Working with Vi editor in Unix Vi is a very powerful text editor on Unix. The below resources will help you when dealing with the vi editor in Unix. This article is intended to work as a basic starting point or something that you can use on a regular basis for the basic needs. In short, this is a vi survival toolkit. Basic operation modes 1. Command mode to execute commands on the file with respect to its content. Pressing the Esc button will take you to the Command mode. 2. Insert mode to manipulate the text content within the file. Pressing the "Insert" key will take you to the insert mode. Create or Opening a file vi filename It will create a file if does not exist, otherwise the file will be opened. Adding or editing text content As soon as you open a file in vi, you will be in command mode. To edit the content, press the "Insert" key. This will take you to the Insert mode. Add the content using the keyboard. Exiting the vi editor T...
Let's make things work!