Analysis of configuration files in the ubantuVIM editor I ,. the powerful personalized customization of vimrc configuration file vim depends on its configuration file and plug-in mechanism. The configuration file is the basis for ensuring the efficient use of plug-ins, so it is very important. The vim configuration file is usually. vimrc, which is placed in the user's $ HOME directory, can be very simple, or even not (use the default), it can be very complicated, hundreds of rows of settings, dazzling. Next I will first post my. vimrc file: The following is a simple vimrc configuration file. If you are interested, view the configuration of the vimrc file for details: 01 set nu "display 02 set ts = 4" set tabstop, that is, the number of spaces occupied by the tab key, help tabstop 03 set sw = 4 "sets shiftwidth, that is,> How many spaces are moved at a time ,: help shiftwidth 04 set cindent "C language smart indent 05 set textwidth = 80" set a line of character width 06 set comments = sl:/*, mb: **, elx: * "Automatically complete annotation symbol 07 filetype plugin indent on" Enable Automatic file type detection 08 set completeopt = longest, menu "set word auto-completion option 09 set autoindent" set auto-indent 10 set encoding = UTF-8 fileencodings = ucs-bom, UTF-8, cp936 "set encoding, only the correct encoding can display the Chinese 11 set OFDM = indent "set the folding mode to automatically fold according to the indentation.: help OFDM 12 set hlsearch" highlight the search words when setting the search ,: help hlsearch 13 set history = 1000 // save 1000 rows of history; 14 set smartindent // smart indent; 15 setfilecncodings = UTF-8, ucs-bom, cp936, gbk, gb18030, shift-jis // set the encoding type of the opened file to prevent Chinese garbled characters. 16 set confirm // when processing unsaved or read-only files, a confirmation is displayed; 17 set showmatch // highlight matching characters;