Vim syntax highlighting, syntax prompting, and automatic configuration

Source: Internet
Author: User

Vim syntax highlighting, syntax prompting, automatic configuration of vim requires the vim version 7.0 or later. Edit the configuration file, usually (/etc/vimrc) syntax onset ts = 4 set character cindent character = 4 set softtabstop = 4 autocmd FileType c set expandtabautocmd FileType cpp set expandtabautocmd FileType php set character FileType python set expandtabset encoding = utf-8set fileencoding = utf-8set = utf-8set is hi Comment ctermfg = blue // modify annotation color // gray 2. Syntax prompt. vimrc file 1. autocmd FileType python set omnifunc = pythoncomplete # Complete 2. autocmd FileType variable Cr variable pt set omnifunc = variable Cr variable ptcomplete # CompleteJS 3. autocmd FileType html set omnifunc = htmlcomplete # CompleteTags 4. autocmd FileType css set omnifunc = csscomplete # CompleteCSS 5. autocmd FileType xml set omnifunc = xmlcomplete # CompleteTags 6. autocmd FileType php set omnifunc = phpcomplete # CompletePHP 7. autocmd FileType c set omnifunc = ccomplete # Complete

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.