Vim-->c/c++ Programming Environment Construction

Source: Internet
Author: User

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

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.