Vim Color Scheme
Syntax highlighting in Vim.
This page includes information about color schemes in Vim. Vim color schemes use the extension .vim.
Color Scheme Paths
Linux
Installed color schemes live here:
# XX here indicates the vim version, e.g. vim80, vim91
/usr/share/vim/vimXX/colors
User created themes go here:
~/.vim/colors/
Windows
User created themes for gVim go here:
# Create this directory if it does not exist
C:\Users\<username>\vimfiles\colors
Flux Dark (Original Theme)
The Vim color scheme I designed can be found here. The theme is organized into three modular files; to install it, copy the following into your local colors directory (typically ~/.vim/colors/):
flux-base.vimflux-colors-dark.vimflux-dark.vim
Highlight Syntax Options
For more information on Vim syntax highlighting, visit this page.
Common Highlight Groups
UI Elements
| Highlight Group | Description |
|---|---|
Normal |
Default text color |
Cursor |
The cursor itself |
CursorLine |
The current line background |
StatusLine |
Active status line |
StatusLineNC |
Inactive status line |
VertSplit |
Vertical split line |
Visual |
Text selected in visual mode |
LineNr |
Line numbers in the gutter |
Folded |
Folded text color |
Syntax Elements
| Highlight Group | Description |
|---|---|
Comment |
Comments (//, #, etc.) |
Constant |
Constants (like numbers, strings) |
Identifier |
Variable names |
Statement |
Control flow keywords (if, for, return) |
PreProc |
Preprocessor directives (#include, import) |
Type |
Type names (int, float, char) |
Special |
Special symbols or escape sequences |
Special Effects
| Highlight Group | Description |
|---|---|
Error |
Error messages |
Todo |
TODO comments |
Search |
Matches from /search |
IncSearch |
Incremental search matches |
MatchParen |
Matching parentheses |