A text editor is the one that allows us to create and manipulate data in a Linux file. Some of the standard text editors available in the Linux system are:
The vi editor provides commands for insertion and deletion, replacing text, moving around the line, finding and substituting strings, and cutting and pasting text.
Some of the common keys in vi editor are I for insert, Esc for an escape out of any mode, d for delete, :q! for quit without saving, o for new-line, and :wq! for quit and save.
To open the vi editor the command is:
The vi editor that opens has two modes - inserting text within the editor and executing the command. To go into the insert mode, we have to hit i. Immediately INSERT gets reflected at the bottom of the editor.
To come out of any mode, we have to hit the escape key. To save the content, we have inserted, the command is
shift zz or type
If we are not in insert mode, we can move around inside the file with the up, bottom, right, and left keys.
To search for a keyword within the vi editor the command is.
Some of the websites that offer free vim training are :
Myself Debomita Bhattacharjee, an IT employee with 6+ years of experience in Software industry. My area of interest is Automation testing and Front End Development.