"VundleSetNocompatible"Be improved, requiredFileType off"Required"set the runtime path to include Vundle and initializeSetrtp+=~/.vim/bundle/vundle.vimcall vundle#begin ()"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'tpope/vim-fugitive'"plugin from http://vim-scripts.org/vim/scripts.htmlPlugin'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/'}plugin'Scrooloose/nerdtree'Plugin'Chiel92/vim-autoformat'Plugin'Valloric/youcompleteme'"All of your Plugins must is added before the following lineCall Vundle#end ()"RequiredFileType plugin indent on"Required"to ignore plugin indent changes, instead use:"filetype plugin on""Brief Help":P luginlist-lists configured plugins":P lugininstall-installs plugins, append '! ' to update or just:P luginupdate":P luginsearch foo-searches for foo, append '! ' to refresh local cache":P luginclean-confirms removal of unused plugins; Append '! ' to auto-approve removal""see:h Vundle For more details or wiki for FAQ"Put your non-plugin stuff after this line"Normal SettingsSetNobackupSetNoswapfileSetHlsearchSetIncsearchSetNumber"Show Line NumbersSetAutoindent"Set auto indent: The indent value for each line is equal to the previous line; Use Noautoindent to cancel the settingSetCindent"set up automatic indentation using C + + languageSetsmartindentSetShiftwidth=4 "sets the number of spaces for indentation to 4Settabstop=4 "set (Soft) tab width to 4:Setsofttabstop=4 "NedtreeMap <F4>:nerdtreemirror<cr>Map<F4>:nerdtreetoggle<cr>"Vim-autoformatNoremap <F3>:autoformat<cr><cr>
My VIM configuration