C environment configuration in linux-vim

Source: Internet
Author: User
Article Title: c environment configuration in linux-vim. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Syntax highlighted:

If you want to see the syntax highlighted, add the "syntax enable" command to the/etc/vimrc file.

If you want to enable the syntax to only take effect on terminals that support colors, you can write the following in the/etc/vimrc file:

If & t_Co> 1

Syntax enable

Endif

Vi tab key settings:

Create a file in the user's home directory. exrc

Content is

Set ts = 4

Set sw = 4

Set ai

During gcc compilation, use-l to find the corresponding library files. If you need libm. a, use-lm.

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.