Vim configuration file types and loading sequence. for basic configurations, see: version. Vim configuration files are divided into three types: versionVIM-Vi IMproved 7.3 (2010 Aug 15, compiled Oct 29 2011 18:46:03) system vimrc file: "$ VIM/vimrc" User vimrc file: "$ HOME /. vimrc "User exrc file:" $ HOME /. exrc "$ VIM default value:"/usr/local/share/vim "the loading sequence can be learned through: scriptname: scripname 1: /usr/local/share/vim/vimrc 2:/usr/local/share/vim/vim73/syntax. vim 3:/usr/local/share/vim/vim73/syntax/synload. vim 4: /Usr/local/share/vim/vim73/syntax/syncolor. vim 5:/usr/local/share/vim/vim73/filetype. vim 6:/usr/local/share/vim/vim73/ftplugin. vim 7:/home/zhanhailiang /. vimrc 8:/usr/local/share/vim/vim73/syntax/nosyntax. vim 9:/home/zhanhailiang /. vim/plugin/ctag. vim 10:/home/zhanhailiang /. vim/plugin/jsbeautify. vim 11:/home/zhanhailiang /. vim/plugin/matchit. vim 12:/home/zhanhailiang /. vim/plugin/tagli St. vim 13:/home/zhanhailiang /. vim/plugin/reload. vim 14:/usr/local/share/vim/vim73/plugin/getscriptPlugin. vim 15:/usr/local/share/vim/vim73/plugin/gzip. vim 16:/usr/local/share/vim/vim73/plugin/matchparen. vim 17:/usr/local/share/vim/vim73/plugin/netrwPlugin. vim 18:/usr/local/share/vim/vim73/plugin/rrhelper. vim 19:/usr/local/share/vim/vim73/plugin/spellfile. vim 20:/usr/local/share/vim/vim73/p Lugin/tarPlugin. vim 21:/usr/local/share/vim/vim73/plugin/tohtml. vim 22:/usr/local/share/vim/vim73/plugin/vimballPlugin. vim 23:/usr/local/share/vim/vim73/plugin/zipPlugin. vim 24:/usr/local/share/vim/vim73/scripts. vim 25:/usr/local/share/vim/vim73/ftplugin/vim. vim 26:/usr/local/share/vim/vim73/syntax/vim. vim 27:/usr/local/share/vim/vim73/ftplugin/help. vim 28:/usr/local/share/vim/vim73/syntax /Help. vim my Vim configuration: "The set background = dark command must be called before syntax on, otherwise set background = darksyntax on set nocompatible "let & termencoding = & encodingset encoding = utf-8set tabstop = 4 set softtabstop = 4 set authorization = 4 set nuset aiset OFDM = markerset foldclose = allset foldopen = allset incsearchset hlsearchset history = 100 set rulerset show1_set showmatchset whichwrap = B, s, <,> "case-insensitive" if it is searched in lower case mode, case-insensitive. If it is in upper case, case-sensitive set Ignorecase smartcaseset expandtab "set textwidth = 78" dispaly tab and spaceset listset listchars = tab:>-, trail: -"number of lines used for the command-lineset bytes Height = 2" Set to auto read when a file is changed from the outsideset autoread "Write the contents of the file automaticly automatically saves set autowrite "set laststatus = 2 ": shset shell =/bin/bash "ctaglet g: ctags_statusline = 1 set tags + = ~ /Public_html/source/phpext/php-5.3.6 "hi Comment ctermfg = blue filetype plugin on if! Exists ('G: AutoComplPop_Behavior ') let g: AutoComplPop_Behavior = {} let g: AutoComplPop_Behavior ['php'] = [] call add (g: AutoComplPop_Behavior ['php'], {\ 'command': "\ <C-x> \ <C-o>", \ 'pattern': printf ('\ (-> \ | :: \ | \ $ \) \ k \ {% d,} $ ', 0), \ 'repeat': 0, \}) endif "delete all inoremap mappings: imapclear "js format: nnoremap <SID> <F6>: call g: Jsbeautify () <CR>" public comment: iabbrev # B /************************************ *****************************: iabbrev # e <Space> ********************************** * *****************************/"regular errors automatically corrected" Note: you can add the following words when a regular error occurs: iab teh the "automatically locates autocmd BufReadPost * at the end of the log file each time the log file is opened *. log normal G au BufRead, BufNewFile/usr/local/services/nginx/conf/* set ft = nginx