Vim: Define your own color theme (ColorScheme)

Source: Internet
Author: User

Command mode input: Hi[ghlight] can see the current vim of the coloring style command mode input: Sy[ntax] can see the current syntax highlighting mode, when the text of the document and the list of the regular table match, VIM will give the text coloring, apply indentation and so want to define their own coloring style, Ability to build <name>.vim files under ~/.vim/colors/, then use in vim: ColorScheme <name> load. It is also possible to write the ColorScheme command into the. VIMRC self-loading color file format: Gaze at the beginning of the line highlight clearClear all color settings let G:colors_name = "<name>"Set color style name color settings table: Highlight < Group name > <key>=<args>highlight < group name > <key>=<args> The group name is the leftmost column displayed by the: Highlight command, and the text that belongs to this group will be colored in a set way key can be:Term (normal console)/cterm (Advanced console, with color and other functions)/guiCTERMFG (cterm foreground color)/CTERMBG (cterm background color), etc.Args can be:Bold/none/underline/italic/inverse/reverseor a color code:Cterm uses 1-7 for 7 colors defined in advance, assuming the text is added with the bold attribute to highlight the colorGUI can use color name or RGB code to indicate color sample: Highlight Statement ctermfg=3 cterm=bold guifg= #c0c000 gui=bold

Vim: Define your own color theme (ColorScheme)

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.