I believe this editor is ugly and does not see the point in using it, but some Linux programs it has used me every time have to remember how it works and what the command dial. I know I have and I recorded the basic commands in this article to not adopted every time not to look.
The Vi Editor is a full-screen text editor for UNIX. The Vi Editor is present in any Linux system (even minimal) and will run from the Linux command line in the catastrophic situation. The user, therefore, has always maintained the ability to edit the configuration files to bring the system to the operating state. Therefore, each user of Linux requires at least basic skills in Vi.
VI/file_folder/filename-open file in the vi editor
(vi)/file_folder/filename + +25-open file in the vi editor and go to line 25.
I-mode for the frame
[Esc] to exit this mode]
CTRL + R-redo
: w [Enter] to save the changes you have made.
: q! [Enter] to exit without saving changes
: wq [Enter] to save the changes and exit.
DD-removes the row on which the cursor is located
x-removes the character on which courses
[y]-copies the row in a buffer
[P]-inserts the copied line after the one at which the cursor is currently
/text [Enter]-searches for “text” in the text
:% s/6201/6202/gc-searches the document the occurrence of 6201 and change (with confirmation) on 6202 (replacement of the port).
Show/hide line numbers in vi:
: set nu-number line
: set nonu-not numbered line
A detailed guide to Vim, you can get by this editor and command: help.