VIM configuration syntax highlighting under Mac

Source: Internet
Author: User
Set the font color for the terminal

, open the terminal then, select Preferences, then select the profile, then the left side of the window can choose the system configuration, or you can customize, and finally don't forget to set your configuration to default on the line

Vim Syntax highlighting settings

Just need to find the VIMRC configuration file on the line, enter the following command in the terminal, you can open the configuration file

CP/USR/SHARE/VIM/VIMRC ~/.VIMRC

~/.vimrc

There are a lot of people on the Internet can not find vim configuration file, you may use command+shift+g to go to the folder, or the simplest and most stupid method is you go directly to the root directory, and then a layer of CD, and then look for; system root command, view file instructions

CD/

Ls

The red box is the configuration I added, syntax highlighting, line number, automatic indentation, if you need more configuration, direct Baidu on the line, this online a lot, and finally see the effect

VIM configuration syntax highlighting under Mac

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.