Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace numeric color with vim (ANSI) color names #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 30 additions & 28 deletions colors/default-light.vim
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
highlight SpecialKey ctermfg=4
highlight SpecialKey ctermfg=DarkBlue
highlight TermCursor cterm=reverse
highlight NonText ctermfg=12
highlight Directory ctermfg=4
highlight ErrorMsg ctermfg=15 ctermbg=1
highlight NonText ctermfg=Blue
highlight Directory ctermfg=DarkBlue
highlight ErrorMsg ctermfg=White ctermbg=DarkRed
highlight IncSearch cterm=reverse
highlight MoreMsg ctermfg=2
highlight MoreMsg ctermfg=DarkGreen
highlight ModeMsg cterm=bold
highlight Question ctermfg=2
highlight Title ctermfg=5
highlight WarningMsg ctermfg=1
highlight WildMenu ctermfg=0 ctermbg=11
highlight Conceal ctermfg=7 ctermbg=7
highlight SpellBad ctermbg=9
highlight SpellRare ctermbg=13
highlight SpellLocal ctermbg=14
highlight PmenuSbar ctermbg=8
highlight PmenuThumb ctermbg=0
highlight TabLine cterm=underline ctermfg=0 ctermbg=7
highlight Question ctermfg=DarkGreen
highlight Title ctermfg=DarkMagenta
highlight WarningMsg ctermfg=DarkRed
highlight WildMenu ctermfg=Black ctermbg=Yellow
highlight Conceal ctermfg=Gray ctermbg=Gray
highlight SpellBad ctermbg=Red
highlight SpellRare ctermbg=Magenta
highlight SpellLocal ctermbg=Cyan
highlight PmenuSbar ctermbg=DarkGray
highlight PmenuThumb ctermbg=Black
highlight TabLine cterm=underline ctermfg=Black ctermbg=Gray
highlight TabLineSel cterm=bold
highlight TabLineFill cterm=reverse
highlight CursorColumn ctermbg=7
highlight CursorColumn ctermbg=Gray
highlight CursorLine cterm=underline
highlight MatchParen ctermbg=14
highlight Constant ctermfg=1
highlight Special ctermfg=5
highlight Identifier cterm=NONE ctermfg=6
highlight Statement ctermfg=3
highlight PreProc ctermfg=5
highlight Type ctermfg=2
highlight Underlined cterm=underline ctermfg=5
highlight Ignore ctermfg=15
highlight Error ctermfg=15 ctermbg=9
highlight Todo ctermfg=0 ctermbg=11
highlight MatchParen ctermbg=Cyan
highlight Constant ctermfg=DarkRed
highlight Special ctermfg=DarkMagenta
highlight Identifier cterm=NONE ctermfg=DarkCyan
highlight Statement ctermfg=DarkYellow
highlight PreProc ctermfg=DarkMagenta
highlight Type ctermfg=DarkGreen
highlight Underlined cterm=underline ctermfg=DarkMagenta
highlight Ignore ctermfg=White
highlight Error ctermfg=White ctermbg=Red
highlight Todo ctermfg=Black ctermbg=Yellow

" vim91\syntax\dircolors.vim for confirmed color mapping names/numbers
70 changes: 35 additions & 35 deletions colors/dim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@ let colors_name = "dim"

" In diffs, added lines are green, changed lines are yellow, deleted lines are
" red, and changed text (within a changed line) is bright yellow and bold.
highlight DiffAdd ctermfg=0 ctermbg=2
highlight DiffChange ctermfg=0 ctermbg=3
highlight DiffDelete ctermfg=0 ctermbg=1
highlight DiffText ctermfg=0 ctermbg=11 cterm=bold
highlight DiffAdd ctermfg=Black ctermbg=DarkGreen
highlight DiffChange ctermfg=Black ctermbg=DarkYellow
highlight DiffDelete ctermfg=Black ctermbg=DarkRed
highlight DiffText ctermfg=Black ctermbg=Yellow cterm=bold

" Invert selected lines in visual mode
highlight Visual ctermfg=NONE ctermbg=NONE cterm=inverse

" Highlight search matches in black, with a yellow background
highlight Search ctermfg=0 ctermbg=11
highlight Search ctermfg=Black ctermbg=Yellow

" Dim line numbers, comments, color columns, the status line, splits and sign
" columns.
if &background == "light"
highlight LineNr ctermfg=7
highlight CursorLineNr ctermfg=8
highlight Comment ctermfg=7
highlight ColorColumn ctermfg=8 ctermbg=7
highlight Folded ctermfg=8 ctermbg=7
highlight FoldColumn ctermfg=8 ctermbg=7
highlight Pmenu ctermfg=0 ctermbg=7
highlight PmenuSel ctermfg=7 ctermbg=0
highlight SpellCap ctermfg=8 ctermbg=7
highlight StatusLine ctermfg=0 ctermbg=7 cterm=bold
highlight StatusLineNC ctermfg=8 ctermbg=7 cterm=NONE
highlight VertSplit ctermfg=8 ctermbg=7 cterm=NONE
highlight SignColumn ctermbg=7
highlight LineNr ctermfg=Gray
highlight CursorLineNr ctermfg=DarkGray
highlight Comment ctermfg=Gray
highlight ColorColumn ctermfg=DarkGray ctermbg=Gray
highlight Folded ctermfg=DarkGray ctermbg=Gray
highlight FoldColumn ctermfg=DarkGray ctermbg=Gray
highlight Pmenu ctermfg=Black ctermbg=Gray
highlight PmenuSel ctermfg=Gray ctermbg=Black
highlight SpellCap ctermfg=DarkGray ctermbg=Gray
highlight StatusLine ctermfg=Black ctermbg=Gray cterm=bold
highlight StatusLineNC ctermfg=DarkGray ctermbg=Gray cterm=NONE
highlight VertSplit ctermfg=DarkGray ctermbg=Gray cterm=NONE
highlight SignColumn ctermbg=Gray
else
highlight LineNr ctermfg=8
highlight CursorLineNr ctermfg=7
highlight Comment ctermfg=8
highlight ColorColumn ctermfg=7 ctermbg=8
highlight Folded ctermfg=7 ctermbg=8
highlight FoldColumn ctermfg=7 ctermbg=8
highlight Pmenu ctermfg=15 ctermbg=8
highlight PmenuSel ctermfg=8 ctermbg=15
highlight SpellCap ctermfg=7 ctermbg=8
highlight StatusLine ctermfg=15 ctermbg=8 cterm=bold
highlight StatusLineNC ctermfg=7 ctermbg=8 cterm=NONE
highlight VertSplit ctermfg=7 ctermbg=8 cterm=NONE
highlight SignColumn ctermbg=8
highlight LineNr ctermfg=DarkGray
highlight CursorLineNr ctermfg=Gray
highlight Comment ctermfg=DarkGray
highlight ColorColumn ctermfg=Gray ctermbg=DarkGray
highlight Folded ctermfg=Gray ctermbg=DarkGray
highlight FoldColumn ctermfg=Gray ctermbg=DarkGray
highlight Pmenu ctermfg=White ctermbg=DarkGray
highlight PmenuSel ctermfg=DarkGray ctermbg=White
highlight SpellCap ctermfg=Gray ctermbg=DarkGray
highlight StatusLine ctermfg=White ctermbg=DarkGray cterm=bold
highlight StatusLineNC ctermfg=Gray ctermbg=DarkGray cterm=NONE
highlight VertSplit ctermfg=Gray ctermbg=DarkGray cterm=NONE
highlight SignColumn ctermbg=DarkGray
endif

highlight link DimFzfFg Normal
Expand All @@ -59,10 +59,10 @@ highlight link DimFzfFgPlus PmenuSel
highlight link DimFzfBgPlus PmenuSel
highlight link DimFzfInfo Comment

highlight DimFzfHl ctermfg=2
highlight DimFzfPrompt ctermfg=12
highlight DimFzfPointer ctermfg=1
highlight DimFzfMarker ctermfg=9
highlight DimFzfHl ctermfg=DarkGreen
highlight DimFzfPrompt ctermfg=Blue
highlight DimFzfPointer ctermfg=DarkRed
highlight DimFzfMarker ctermfg=Red

let g:fzf_colors = { 'fg': ['fg', 'DimFzfFg'],
\ 'bg': ['bg', 'DimFzfBg'],
Expand Down