Create a new VIMRC in the user's home directory. For example:Vim ~/.VIMRCthen you can copy it in. The configuration is as follows:
"turn off VIM consistency principleSet Nocompatible"Show Line NumbersSet number"sets the row and column information for the cursor in the lower-right corner of the editing processSet Ruler"Show the command being entered in the status barSet ShowCmd"Set History bar numberSet history= +"set cancel Backup to prevent temporary file generationSet Nobackupset noswapfile"setting the matching modeSet Showmatch"set up a C + + mode for automatic alignmentSet Autoindentset cindent"turn on the syntax highlighting featuresyntax Enablesyntax on"Specify a color scheme of 256 colorsSet t_co= the"Ignore case when setting searchSet ignorecase"Configure how the BACKSPACE worksSet backspace=Indent,eol,start"settings can be used with the mouse in VimSet mouse=a"Set Tab WidthSet tabstop=4"set the number of auto-ZilinSet shiftwidth=4"You can delete 4 spaces when you set the backspace barSet Smarttabset softtabstop=4"automatically convert the TAB key to a spaceSet Expandtab"Setting the Encoding methodSet encoding=utf-8"automatically determine the encoding when you try the following code in turnSet fileencodings=ucs-bom,utf-8, cp936,gb18030,big5,euc-jp,euc-kr,latin1"Detecting file Typesfiletype on"take different indents for different filesfiletype indent on"Allow pluginsfiletype plugin on"Start Smart CompletionFileType plugin indent on
Individual configuration of VIM (easy programming)