Set qt4 syntax highlighting for VIM

Source: Internet
Author: User

Method 1:

1. Backup vimdir/syntax/C. Vim
2. Download C. Vim
And replace the existing vimdir/syntax/C. Vim

Method 2:
1. Backup vimdir/syntax/C. Vim
2. Open the vimdir/syntax/C. Vim file and search for the following locations:Code:"A bunch of useful C keywords
SYN keyword cstatement goto break return continue ASM
...
..

3. Use the following line to replace the above sentence "syn keywordcstatementgoto break return continue ASM".Code:SYN keyword cstatement goto break return continue ASM connect signal slot

Download In 4、and open vim-qt4-keywords.txt
. Copy the full text and paste it somewhere in C. vim. (After I put it on line 1). Please be careful with this operation. Otherwise, the C. Vim file may not be loaded properly.

References: http://sector.ynet.sk/qt4-tutorial/other/vim-qt4.html

 

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.