Create a basic file and directory structure
" Set up Vim's basic setup file vim ~/. vimrc" to create a plugin directory, all plugins have their own folders exist. Vim directory under mkdir ~/ . Vim ; Let the vundle take over. Vim plugin management git clone https://github.com/vundlevim/vundle.vim.git ~/.vim/ Bundle/vundle.vim
Basic settings
"turn on file type detectionfiletype on"loading different plugins based on the detected typefiletype plugin on"make configuration file changes effective immediatelyautocmd bufwritepost ${MYVIMRC} source ${MYVIMRC}"turn on the real-time search functionSet Incsearch"case insensitive when searchingSet ignorecase"Highlight Search ResultsSet Hlsearch"Turn off compatibility modeSet Nocompatible"vim Self command line mode intelligent CompletionSet Wildmenu"Always show status barSet laststatus=2"Show cursor Current positionSet Ruler"Turn on line number displaySet number"highlight current row/columnSet Cursorlineset cursorcolumn"turn on the syntax highlighting featuresyntax Enable"allows you to replace the default scheme with the specified syntax highlighting color schemeSyntax on"Adaptive Smart indentation in different languagesfiletype indent on"To expand a tab to a spaceSet Expandtab"set the number of tabs to use when editingSet tabstop=4"set tab space when formattingSet shiftwidth=4"let vim treat a contiguous number of spaces as a tabSet softtabstop=4 "code folding based on indentation or syntax"Set Foldmethod=indentSet foldmethod=Syntax"Turn off folding code when Vim is startedSet Nofoldenable"za, open or close the current folding; ZM, close all folds; ZR, open all folds
Vim-->c/c++ Programming Environment Construction