1) First find the configuration file for vim. VIMRC, enter ls-a view, if you do not create a new
2) Enter the command vim. VIMRC into this file and enter the following statement:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/80/F3/wKioL1dFYDTAaVd8AAApw16Ud-w462.png "title=" 5.png " alt= "Wkiol1dfydtaavd8aaapw16ud-w462.png"/>
Here is a description of the above command:
1: Show Line numbers
2: Syntax highlighting
3: Highlight the current line (just like the last line, there is a dash)
The width of the 4:tab button is set to 4
5: Set the color scheme, here I choose is Murphy
6,7,8: Set auto indent, size is 4
This way your vim can basically write code just like in vs.
The effect is as follows:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/F3/wKioL1dFYOSAMWMeAAAhusKkG-M739.png "title=" 6.png " alt= "Wkiol1dfyosamwmeaaahuskkg-m739.png"/>
Vim Configuration in Linux