Vim configuration file type, loading sequence, basic configuration

Source: Internet
Author: User
Vim configuration file type, loading order, basic configuration through View: version can see Vim configuration file is divided into three types: versionVIM-ViIMproved7.3 (2010Aug15, compiledOct29201118: 46: 03) system vimrc File: & quot; $ VIM/vimr... 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: scr Ipname 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:/hom E/zhanhailiang /. vim/plugin/jsbeautify. vim 11:/home/zhanhailiang /. vim/plugin/matchit. vim 12:/home/zhanhailiang /. vim/plugin/taglist. 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/plugin/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 I Ncsearchset hlsearchset history = 100 set rulerset show‑set showmatchset whichwrap = B, s, <,> "case-insensitive" if it is in lower-case mode, case-insensitive; if it is in upper-case mode, 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 o F the file automaticly automatically saves set autowrite "open status row 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 ':"\ \ ", \ 'Pattern': printf ('\ (-> \ | ::\|\\ \) \ k \ {% d ,}$', 0 ), \ 'repeat': 0, \}) endif "deletes all inoremap mappings: imapclear" js format: nnoremap : Call g: Jsbeautify () "Public comment: iabbrev # B /************************************ *****************************: iabbrev # e **************************************** * ************************/"Regular errors are 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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.