Key reviews:
Linux under the configuration file is more text files, so use Vim can be set to edit;
Vim can be considered as the program editor, can be used to edit shell script, configuration files, etc., to avoid typos
VI for all UNIX-like operating systems will be present in the editor, and fast execution speed
VI has three modes, the general mode can be transformed to edit and command column mode, but the editing mode and the command column mode is not interchangeable;
Common keys are i,[esc],:wq and so on.
The picture of VI can be divided into two parts, (1) The upper part of this article and (2) The last line of the state + instruction column mode;
The number is meaningful to illustrate the meaning of repeating several actions, such as 5yy for copying 5 lines of meaning;
In the movement of the cursor, uppercase G is often used, especially 1g,g to move to the head/tail function of the article!
VI's replacement function is also very good! : N1,n2s/old/new/g should pay special attention to study;
decimal point "." To repeat the previous action, is also a very frequent use of the key function!
Enter edit mode almost as long as remember: i,o,r three button! In particular, the addition of a new row of O vs. substituted R
VIM will actively set up swap temporary archives, so do not arbitrarily short-term!
If there is a chunk within the article, you can use "Ctrl + V" to copy/paste up/delete the behavior
Use: SP function to split windows
The environment setting of Vim can be written in ~/.VIMRC file;
You can use Iconv to convert the file language encoding
Using Dos2unix and Unix2dos, you can change the line-breaking character for each line of the file.
Linux Program Editor