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)