"=======================basic___configuration_start===================="Modifying the default directory"": cd D:\dream\programmingSetts=4 "the length of the TAB keySyntax on"Syntax HighlightingSetNocompatible"remove nasty about VI conformance patterns, avoid bugs and limitations of previous versionsSetBackspace=indent,eol,start"troubleshoot issues that BACKSPACE is not available"Set Cul"Highlight current Linelet filetype_i="ASM"SetVisualbell"Use visual Bell instead of beepingSetAutoread"Watch for file changesSetNu"Set Smarttab"Settab and backspace are smart;SetIncsearch"Show immediately where the so far typed search pattern matchesSettabstop=4"C language Cindent setSetShiftwidth=4 "autocindent 7 BlackpaseSetsts=4 "softtabstop = 4SetExpandtab"input tab and VIM would use backspaceSetCindent"The C languageSetAutoindent"Copy the previous line ' s indent -to-the-lineSetAutochdir"Change the word dirtory according the file"Maps":" to";", and"," to";"Only on the Normal mode and one time"Nore;:"Nore,;"=======================basic___configuration_end================="the setting command for the font is the set gfn= font name: h font size; The set command for the background color is the ColorScheme color scheme name"Setgfn=courier_new:h11colorscheme torte"set the code form of the fileSetencoding=utf-8Settermencoding=utf-8Setfileencoding=utf-8Setfileencodings=ucs-bom,utf-8, chinese,cp936"Vim Menu garbled solution:"also in the _VIMRC file above the Chinese setting, add the following command,SOURCE $VIMRUNTIME/Delmenu.vim Source $VIMRUNTIME/Menu.vim"the solution of VIM message garbledLanguage Messages zh_cn.utf-8"===========vundle_start================SetNocompatible"Be improved, requiredFileType off"Required "set the runtime path to include Vundle and initializeSetrtp+= $VIM/vimfiles/bundle/Vundle.vimcall Vundle#begin ('$VIM/vimfiles/bundle/')"Download the directory"Alternatively, pass a path where vundle should install plugins"Call vundle#begin (' ~/some/path/here ') "Let Vundle manage Vundle, requiredPlugin'Gmarik/vundle.vim' "The following is examples of different formats supported."Keep Plugin commands between vundle#begin/end."plugin on GitHub repoPlugin'Scrooloose/nerdtree'Plugin'Tpope/vim-fireplace'Plugin'Supertab'Plugin'Vim-scripts/ruby-macros.vim'Plugin'Vim-ruby/vim-ruby'Plugin'Sql.vim'Plugin'A.vim'"Plugin"plugin from http://vim-scripts.org/vim/scripts.html"Plugin ' L9 '"Git plugin not hosted on GitHub"Plugin ' Git://git.wincent.com/command-t.git '"git repos on your local machine (i.e. when working on your own plugin)"Plugin ' File:///home/gmarik/path/to/plugin '"The sparkup vim script is in a subdirectory of this repo called Vim."Pass The path to set the Runtimepath properly."Plugin ' Rstacruz/sparkup ', {' RTP ': ' vim/'}"Avoid a name conflict with L9"Plugin ' User/l9 ', {' name ': ' NewL9 '} "All of your Plugins must is added before the following lineCall Vundle#end ()"RequiredFileType plugin indent on"Required"===================vundle_end================"===================template_file_start=============ifHas ("VMS") SetNobackup"Keep a backup file, use versions instead"Else"Set Backup"Keep a backup fileendif"==================template_file_end============="=====================map====================Map <F10>:nerdtreetoggle<cr>
Personal configuration of Vim under Windows