vim-djmoch

My own personal Vim colorscheme
git clone git://git.danielmoch.com/vim-djmoch.git
Log | Files | Refs | README

commit bda6bb9e84f382f98110d4e71c33b782aebc32a4
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun,  1 Sep 2019 17:37:51 -0400

Initial commit

Diffstat:
A.gitignore | 1+
ALICENSE.rnb | 21+++++++++++++++++++++
AMakefile | 16++++++++++++++++
AREADME.md | 31+++++++++++++++++++++++++++++++
Acolors/djmoch.erb | 377+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Acolors/djmoch.vim | 175+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 621 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +rnb.vim diff --git a/LICENSE.rnb b/LICENSE.rnb @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Romain Lafourcade + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile @@ -0,0 +1,16 @@ +####### ## ## ####### +## ## ### ## ## ## +## ## #### ## ## ## +####### ## ## ## ####### +## ## ## #### ## ## +## ## ## ### ## ## +## ## ## ## ####### + +VIM_OUTPUTS = $(patsubst %.erb,%.vim,$(wildcard colors/*.erb)) + +.PHONY: all + +all: $(VIM_OUTPUTS) + +%.vim: %.erb + erb -T - $< > $@ diff --git a/README.md b/README.md @@ -0,0 +1,31 @@ +# vim-djmoch + +My own, personal colorscheme. + +## Description + +If you're looking for a beautiful colorscheme for Vim with beautiful, +well-balanced colors, then you should look elsewhere. If you want a +dark, low-contrast theme for your editor, this isn't for you. If you +want something that the author _didn't_ just name after himself, then +I'm sorry. + +The several goals of __vim-djmoch__ are as follows: + +1. High contrast, for readability. +2. Black-on-white, which is more natural to the eye. +3. I'm somewhat attached to the shade of blue, so that's used as an + accent. + +Beyond those goals, the author reserves every right to make sudden, +radical changes without warning. The hope is that it will stabilize over +time, but as of September 2019 it's brand new and should be considered +unstable (or worse). + +## License + +djmoch.vim is distributed under the same terms as Vim itself (see :help +license). djmoch.erb and Makefile are either derived or copied from +[vim-rnb](https://github.com/romainl/vim-rnb) and so carry forward that +project's MIT license (see +[LICENSE.rnb](https://git.danielmoch.com/vim-djmoch/tree/LICENSE.rnb)). diff --git a/colors/djmoch.erb b/colors/djmoch.erb @@ -0,0 +1,377 @@ +<% + # RNB, A VIM COLORSCHEME TEMPLATE + # Author: Romain Lafourcade (https://github.com/romainl) with + # customizations for vim-djmoch by Daniel Moch + # (https://danielmoch.com) + # Canonical URL (vim-rnb): https://github.com/romainl/vim-rnb + # Canonical URL (vim-djmoch): https://git.danielmoch.com/vim-djmoch + + # This template is designed to help vimmers create their own colorschemes + # without much effort. + # + # You will need Ruby to generate your colorscheme but Ruby knowledge is + # not needed at all. + # + # The process is divided in five steps: + # 1. rename the template, + # 2. edit your colorscheme's information, + # 3. define your colors, + # 4. define your highlight groups and links, + # 5. and generate your colorscheme. + + # Step 1: renaming + # + # If this file is distributed with a colorscheme it's probably already named correctly + # and you can skip this step. + # + # If you forked/cloned/copied this repository to create your own colorscheme, you will have to + # rename this template to match the name of your colorscheme. + # + # NOTE: Vim doesn't really care about whitespace in the name of the colorscheme but it does for + # filenames so make sure your filename doesn't have any whitespace character. + # + # colorscheme name | template filename | colorscheme filename + # ------------------|-------------------|---------------------- + # foobar | foobar.erb | foobar.vim + # foo-bar | foo-bar.erb | foo-bar.vim + # foo_bar | foo_bar.erb | foo_bar.vim + # foo bar | foo-bar.erb or | foo-bar.vim or + # | foo_bar.erb | foo_bar.vim + + # Step 2: information + # + # Make sure the name of your colorscheme is unique and attractive. + # The description should fit in a single line with no linefeed. + # 'background' can be "light" or "dark". + information = { + author: "Daniel Moch", + email: "daniel@danielmoch.com", + name: "djmoch", + description: "My personal color schemee", + background: "light", + webpage: "https://git.danielmoch.com/vim-djmoch" + } + + # Step 3: colors + # + # black = [ give each color a distinctive name + # "#000000", hexadecimal color used in GVim/MacVim or "NONE" + # 0, integer between 0 and 255 used by terminals supporting 256 colors + # or "NONE" + # "black" color name used by less capable color terminals, can be "darkred", + # "red", "darkgreen", "green", "darkyellow", "yellow", "darkblue", + # "blue", "darkmagenta", "magenta", "black", "darkgrey", "grey", + # "white", or "NONE" + # ] + # + # If your colors are defined correctly, the resulting colorscheme is guaranteed + # to work in GVim (Windows/Linux), MacVim (MacOS), and any properly set up terminal emulator. + black = ["#000000", 0, "black"] + darkred = ["#870000", 88, "darkred"] + darkgreen = ["#00875f", 29, "darkgreen"] + darkyellow = ["#878700", 100, "darkyellow"] + darkblue = ["#005faf", 25, "darkblue"] + darkmagenta = ["#875faf", 97, "darkmagenta"] + darkcyan = ["#008080", 6, "darkcyan"] + gray = ["#bcbcbc", 250, "gray"] + darkgray = ["#3a3a3a", 237, "darkgray"] + red = ["#d7005f", 161, "red"] + green = ["#87ff00", 118, "green"] + yellow = ["#ffff5f", 227, "yellow"] + blue = ["#5fafff", 75, "blue"] + magenta = ["#d787ff", 177, "magenta"] + cyan = ["#87ff87", 120, "cyan"] + white = ["#ffffff", 15, "white"] + + # Step 4: highlights + # + # You can define highlight groups like this: + # + # [ "Normal", name of the highlight group + # white, the color used for background color, or use "NONE", "fg" or "bg" + # darkgray, the color used for foreground color, or use "NONE", "fg" or "bg" + # "NONE" style, can be "bold", "underline", "reverse", "italic", + # "standout", "NONE" or "undercurl" + # ] + # + # The sample above tells Vim to render normal text in dark gray against a white + # background, without any other styling. + # + # Or you can link an highlight group to another. Here, "Title" will inherit its style from + # "Normal": + # + # [ "Title", "Normal" ] + # + # In GUI Vim, there is an additional color for the undercurl used to + # highlight spelling mistakes: + # + # [ "SpellBad", name of the highlight group + # "NONE", the color used for background color, or use "NONE", "fg" or "bg" + # red, the color used for foreground color, or use "NONE", "fg" or "bg" + # "undercurl", style + # red color used for the undercurl + # ] + # + # The sample above tells Vim to render badly spelled words in red against the current + # background, with a red undercurl. + # + # You can add any custom highlight group to the standard list below but you shouldn't + # remove any if you want a working colorscheme. Most of them are described under + # :help highlight-default, the others are taken from :help group-name. Both help sections + # are good reads, by the way. + highlights = [ + [ "Normal", white, black, "NONE" ], + [ "NonText", white, darkblue, "NONE" ], + [ "EndOfBuffer", "NonText" ], + [ "Comment", white, darkgreen, "NONE" ], + [ "Constant", white, darkred, "NONE" ], + [ "Identifier", white, black, "NONE" ], + [ "Statement", white, darkblue, "NONE" ], + [ "PreProc", white, darkmagenta, "NONE" ], + [ "Type", white, darkmagenta, "NONE" ], + [ "Special", white, darkgreen, "NONE" ], + [ "Underlined", white, black, "undercurl" ], + [ "Ignore", white, gray, "NONE" ], + [ "Error", darkred, white, "NONE" ], + [ "Todo", white, black, "reverse" ], + [ "StatusLine", darkblue, white, "NONE" ], + [ "StatusLineNC", gray, white, "NONE" ], + [ "StatusLineTerm", "StatusLine" ], + [ "StatusLineTermNC", "StatusLineNC" ], + [ "VertSplit", white, gray, "NONE" ], + [ "TabLine", gray, white, "NONE" ], + [ "TabLineFill", white, black, "NONE" ], + [ "TabLineSel", darkblue, white, "NONE" ], + [ "Title", white, darkblue, "NONE" ], + [ "CursorLine", gray, black, "NONE" ], + [ "LineNr", gray, black, "NONE" ], + [ "CursorLineNr", gray, darkblue, "NONE" ], + [ "helpLeadBlank", white, black, "NONE" ], + [ "helpNormal", white, black, "NONE" ], + [ "Visual", gray, black, "NONE" ], + [ "VisualNOS", "Visual" ], + [ "Pmenu", white, black, "NONE" ], + [ "PmenuSbar", white, black, "NONE" ], + [ "PmenuSel", white, black, "NONE" ], + [ "PmenuThumb", white, black, "NONE" ], + [ "FoldColumn", white, black, "NONE" ], + [ "Folded", gray, white, "NONE" ], + [ "WildMenu", gray, black, "NONE" ], + [ "SpecialKey", white, darkyellow, "NONE" ], + [ "DiffAdd", white, black, "NONE" ], + [ "DiffChange", white, black, "NONE" ], + [ "DiffDelete", white, black, "NONE" ], + [ "DiffText", white, black, "NONE" ], + [ "IncSearch", black, white, "NONE" ], + [ "Search", yellow, black, "NONE" ], + [ "Directory", white, black, "NONE" ], + [ "MatchParen", black, white, "NONE" ], + [ "SpellBad", darkred, white, "NONE" ], + [ "SpellCap", white, darkred, "undercurl", darkred ], + [ "SpellLocal", white, darkyellow, "undercurl", darkyellow ], + [ "SpellRare", white, darkgreen, "undercurl", darkgreen ], + [ "ColorColumn", black, white, "NONE" ], + [ "SignColumn", white, black, "NONE" ], + [ "ErrorMsg", darkred, white, "NONE" ], + [ "ModeMsg", white, darkgreen, "NONE" ], + [ "MoreMsg", white, darkgreen, "NONE" ], + [ "Question", white, black, "NONE" ], + [ "WarningMsg", "Error" ], + [ "Cursor", black, white, "NONE" ], + [ "CursorIM", "Cursor" ], + [ "CursorColumn", darkyellow, white, "NONE" ], + [ "QuickFixLine", white, black, "NONE" ], + [ "Terminal", "Normal" ], + [ "Conceal", white, black, "NONE" ], + [ "ToolbarLine", white, black, "NONE" ], + [ "ToolbarButton", white, black, "NONE" ], + [ "debugPC", white, black, "NONE" ], + [ "debugBreakpoint", white, black, "NONE" ], + ] + + # Define the color palette used by :terminal when in GUI Vim + # or in TUI Vim when 'termguicolors' is enabled. If this list + # is empty or if it doesn't contain exactly 16 items, the corresponding + # Vim variable won't be set. + # + # The expected values are colors defined in step 3. + # + # Terminal emulators use a basic palette of 16 colors that can be + # addressed by CLI and TUI tools via their name or their index, from + # 0 to 15. The list is not really standardized but it is generally + # assumed to look like this: + # + # Index | Name + # -------|------------- + # 0 | black + # 1 | darkred + # 2 | darkgreen + # 3 | darkyellow + # 4 | darkblue + # 5 | darkmagenta + # 6 | darkcyan + # 7 | gray + # 8 | darkgray + # 9 | red + # 10 | green + # 11 | yellow + # 12 | blue + # 13 | magenta + # 14 | cyan + # 15 | white + # + # While you are certainly free to make colors 0 to 7 shades of blue, + # this will inevitably cause usability issues so… be careful. + terminal_ansi_colors = [ + black, + darkred, + darkgreen, + darkyellow, + darkblue, + darkmagenta, + darkcyan, + gray, + darkgray, + red, + green, + yellow, + blue, + magenta, + cyan, + white + ] + + # Step 5: generation + # + # From a separate shell: + # + # $ erb -T - bar.erb > bar.vim + # + # From Vim: + # + # :!erb -T - % > %<.vim + # + # If this template comes with a Makefile, you can do it from a separate shell, + # with the make program: + # + # $ make + + # These online resources can help you design your colorscheme: + # + # * http://upload.wikimedia.org/wikipedia/en/1/15/Xterm_256color_chart.svg + # the xterm palette + # * http://whatcolor.herokuapp.com/ + # play with hexadecimal colors right in the address bar (currently down) + # * http://color.hailpixel.com/ + # similar concept, fuzzier implementation + # * http://colourco.de/ + # similar concept, fancier implementation + # * http://www.colr.org/ + # extract a palette from an image + # * http://colores.manugarri.com/ + # search for 'word', get images and color palettes + # * http://www.colourlovers.com/palettes + # user-created palettes + # * http://www.perbang.dk/color+scheme/ + # a no-nonsense colorscheme generator + # * https://color.adobe.com/ + # Adobe's fancy colorscheme generator + # * http://paletton.com/ + # The classic 'Color Scheme Designer', rebranded + # * http://vrl.cs.brown.edu/color + # A very smart palette generator + # * https://cmcenroe.me/2018/04/03/colour-scheme.html + # "I Made My Own Colour Scheme and You Can Too!" + + # A few general advices: + # + # * The Windows console is limited to the 16 so-called "ANSI" colors but it used to + # have a few of them interverted which makes numbers impractical. Use color names + # instead of numbers: :help cterm-colors + # * The Windows console (yeah…) doesn't do italics, underlines or bolded text; + # it is limited to normal and reverse. Keep that in mind if you want + # your colorscheme to be usable in as many environments as possible by as many + # people as possible. + # * Actually, terminal emulators rarely do italics. + # * All of the terminal emulators in use these days allow their users to + # change the 16 so-called "ANSI" colors. It is also possible on some platforms + # to change some or all of the 256 colors in the xterm palette. Don't take + # anything for granted. + # * When used against a light background, strong colors work better than muted + # ones. Light or dark doesn't really matters. Also, it is harder to discriminate + # between two similar colors on a light background. + # * Both strong and muted colors work well against a dark background. It is also + # easier to work with similar colors, but dark colors don't work at all. + # * Use as many text samples as possible. String-heavy languages may look completely + # different than keyword-heavy ones. This can have an impact on the usability + # of your colorscheme. + # * Most terminal emulators and terminal multiplexers currently in use on unix-like + # systems support 256 colors but they almost always default to a '$TERM' that tells + # Vim otherwise. Your users will need to make sure their terminal emulator/multiplexer + # is correctly set up if they want to enjoy the best possible experience. + + # Many thanks to Barry Arthur (https://github.com/dahu) for the original idea. + + # You don't need to edit anything beyond this line. +-%> +" <%= information[:name] %>.vim -- Vim color scheme. +" Author: <%= information[:author] %> (<%= information[:email] %>) +" Webpage: <%= information[:webpage] %> +" Description: <%= information[:description] %> +" Last Change: <%= Time.new.strftime "%Y-%m-%d" %> + +hi clear + +if exists("syntax_on") + syntax reset +endif + +let colors_name = "<%= information[:name].downcase %>" + +if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running") +<% for highlight in highlights -%> +<% if highlight.length == 4 -%> + hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][1] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][1] %> cterm=<%= highlight[3] %> guibg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][0] %> guifg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][0] %> gui=<%= highlight[3] %> +<% if highlight[0] == "Normal" -%> +<%= '' %> + set background=<%= information[:background] %> +<%= '' %> +<% end -%> +<% elsif highlight.length > 4 -%> + hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][1] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][1] %> cterm=<%= highlight[3] %> guibg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][0] %> guifg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][0] %> gui=<%= highlight[3] %> guisp=<%= highlight[4].kind_of?(String) ? highlight[4] : highlight[4][0] %> +<% end -%> +<% end -%> + +elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16 + set t_Co=16 +<%= '' %> +<% for highlight in highlights -%> +<% if highlight.length > 2 -%> + hi <%= highlight[0] %> ctermbg=<%= highlight[1].kind_of?(String) ? highlight[1] : highlight[1][2] %> ctermfg=<%= highlight[2].kind_of?(String) ? highlight[2] : highlight[2][2] %> cterm=<%= highlight[3] %> +<% if highlight[0] == "Normal" -%> +<%= '' %> + set background=<%= information[:background] %> +<%= '' %> +<% end -%> +<% end -%> +<% end -%> +endif +<% links = highlights.select do |highlight| -%> +<% highlight.length == 2 -%> +<% end -%> +<% if links.length > 0 -%> +<%= '' %> +<% for link in links -%> +hi link <%= link[0] %> <%= link[1] %> +<% end -%> +<% end -%> +<% if terminal_ansi_colors.length == 16 -%> +<%= '' %> +let g:terminal_ansi_colors = [ +<% for color in terminal_ansi_colors -%> + \ '<%= color[0] %>', +<% end -%> + \ ] +<% end -%> + +" Generated with RNB (https://github.com/romainl/vim-rnb) diff --git a/colors/djmoch.vim b/colors/djmoch.vim @@ -0,0 +1,175 @@ +" djmoch.vim -- Vim color scheme. +" Author: Daniel Moch (daniel@danielmoch.com) +" Webpage: https://git.danielmoch.com/vim-djmoch +" Description: My personal color schemee +" Last Change: 2019-09-01 + +hi clear + +if exists("syntax_on") + syntax reset +endif + +let colors_name = "djmoch" + +if ($TERM =~ '256' || &t_Co >= 256) || has("gui_running") + hi Normal ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + + set background=light + + hi NonText ctermbg=15 ctermfg=25 cterm=NONE guibg=#ffffff guifg=#005faf gui=NONE + hi Comment ctermbg=15 ctermfg=29 cterm=NONE guibg=#ffffff guifg=#00875f gui=NONE + hi Constant ctermbg=15 ctermfg=88 cterm=NONE guibg=#ffffff guifg=#870000 gui=NONE + hi Identifier ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi Statement ctermbg=15 ctermfg=25 cterm=NONE guibg=#ffffff guifg=#005faf gui=NONE + hi PreProc ctermbg=15 ctermfg=97 cterm=NONE guibg=#ffffff guifg=#875faf gui=NONE + hi Type ctermbg=15 ctermfg=97 cterm=NONE guibg=#ffffff guifg=#875faf gui=NONE + hi Special ctermbg=15 ctermfg=29 cterm=NONE guibg=#ffffff guifg=#00875f gui=NONE + hi Underlined ctermbg=15 ctermfg=0 cterm=undercurl guibg=#ffffff guifg=#000000 gui=undercurl + hi Ignore ctermbg=15 ctermfg=250 cterm=NONE guibg=#ffffff guifg=#bcbcbc gui=NONE + hi Error ctermbg=88 ctermfg=15 cterm=NONE guibg=#870000 guifg=#ffffff gui=NONE + hi Todo ctermbg=15 ctermfg=0 cterm=reverse guibg=#ffffff guifg=#000000 gui=reverse + hi StatusLine ctermbg=25 ctermfg=15 cterm=NONE guibg=#005faf guifg=#ffffff gui=NONE + hi StatusLineNC ctermbg=250 ctermfg=15 cterm=NONE guibg=#bcbcbc guifg=#ffffff gui=NONE + hi VertSplit ctermbg=15 ctermfg=250 cterm=NONE guibg=#ffffff guifg=#bcbcbc gui=NONE + hi TabLine ctermbg=250 ctermfg=15 cterm=NONE guibg=#bcbcbc guifg=#ffffff gui=NONE + hi TabLineFill ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi TabLineSel ctermbg=25 ctermfg=15 cterm=NONE guibg=#005faf guifg=#ffffff gui=NONE + hi Title ctermbg=15 ctermfg=25 cterm=NONE guibg=#ffffff guifg=#005faf gui=NONE + hi CursorLine ctermbg=250 ctermfg=0 cterm=NONE guibg=#bcbcbc guifg=#000000 gui=NONE + hi LineNr ctermbg=250 ctermfg=0 cterm=NONE guibg=#bcbcbc guifg=#000000 gui=NONE + hi CursorLineNr ctermbg=250 ctermfg=25 cterm=NONE guibg=#bcbcbc guifg=#005faf gui=NONE + hi helpLeadBlank ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi helpNormal ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi Visual ctermbg=250 ctermfg=0 cterm=NONE guibg=#bcbcbc guifg=#000000 gui=NONE + hi Pmenu ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi PmenuSbar ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi PmenuSel ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi PmenuThumb ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi FoldColumn ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi Folded ctermbg=250 ctermfg=15 cterm=NONE guibg=#bcbcbc guifg=#ffffff gui=NONE + hi WildMenu ctermbg=250 ctermfg=0 cterm=NONE guibg=#bcbcbc guifg=#000000 gui=NONE + hi SpecialKey ctermbg=15 ctermfg=100 cterm=NONE guibg=#ffffff guifg=#878700 gui=NONE + hi DiffAdd ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi DiffChange ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi DiffDelete ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi DiffText ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi IncSearch ctermbg=0 ctermfg=15 cterm=NONE guibg=#000000 guifg=#ffffff gui=NONE + hi Search ctermbg=227 ctermfg=0 cterm=NONE guibg=#ffff5f guifg=#000000 gui=NONE + hi Directory ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi MatchParen ctermbg=0 ctermfg=15 cterm=NONE guibg=#000000 guifg=#ffffff gui=NONE + hi SpellBad ctermbg=88 ctermfg=15 cterm=NONE guibg=#870000 guifg=#ffffff gui=NONE + hi SpellCap ctermbg=15 ctermfg=88 cterm=undercurl guibg=#ffffff guifg=#870000 gui=undercurl guisp=#870000 + hi SpellLocal ctermbg=15 ctermfg=100 cterm=undercurl guibg=#ffffff guifg=#878700 gui=undercurl guisp=#878700 + hi SpellRare ctermbg=15 ctermfg=29 cterm=undercurl guibg=#ffffff guifg=#00875f gui=undercurl guisp=#00875f + hi ColorColumn ctermbg=0 ctermfg=15 cterm=NONE guibg=#000000 guifg=#ffffff gui=NONE + hi SignColumn ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi ErrorMsg ctermbg=88 ctermfg=15 cterm=NONE guibg=#870000 guifg=#ffffff gui=NONE + hi ModeMsg ctermbg=15 ctermfg=29 cterm=NONE guibg=#ffffff guifg=#00875f gui=NONE + hi MoreMsg ctermbg=15 ctermfg=29 cterm=NONE guibg=#ffffff guifg=#00875f gui=NONE + hi Question ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi Cursor ctermbg=0 ctermfg=15 cterm=NONE guibg=#000000 guifg=#ffffff gui=NONE + hi CursorColumn ctermbg=100 ctermfg=15 cterm=NONE guibg=#878700 guifg=#ffffff gui=NONE + hi QuickFixLine ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi Conceal ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi ToolbarLine ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi ToolbarButton ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi debugPC ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + hi debugBreakpoint ctermbg=15 ctermfg=0 cterm=NONE guibg=#ffffff guifg=#000000 gui=NONE + +elseif &t_Co == 8 || $TERM !~# '^linux' || &t_Co == 16 + set t_Co=16 + + hi Normal ctermbg=white ctermfg=black cterm=NONE + + set background=light + + hi NonText ctermbg=white ctermfg=darkblue cterm=NONE + hi Comment ctermbg=white ctermfg=darkgreen cterm=NONE + hi Constant ctermbg=white ctermfg=darkred cterm=NONE + hi Identifier ctermbg=white ctermfg=black cterm=NONE + hi Statement ctermbg=white ctermfg=darkblue cterm=NONE + hi PreProc ctermbg=white ctermfg=darkmagenta cterm=NONE + hi Type ctermbg=white ctermfg=darkmagenta cterm=NONE + hi Special ctermbg=white ctermfg=darkgreen cterm=NONE + hi Underlined ctermbg=white ctermfg=black cterm=undercurl + hi Ignore ctermbg=white ctermfg=gray cterm=NONE + hi Error ctermbg=darkred ctermfg=white cterm=NONE + hi Todo ctermbg=white ctermfg=black cterm=reverse + hi StatusLine ctermbg=darkblue ctermfg=white cterm=NONE + hi StatusLineNC ctermbg=gray ctermfg=white cterm=NONE + hi VertSplit ctermbg=white ctermfg=gray cterm=NONE + hi TabLine ctermbg=gray ctermfg=white cterm=NONE + hi TabLineFill ctermbg=white ctermfg=black cterm=NONE + hi TabLineSel ctermbg=darkblue ctermfg=white cterm=NONE + hi Title ctermbg=white ctermfg=darkblue cterm=NONE + hi CursorLine ctermbg=gray ctermfg=black cterm=NONE + hi LineNr ctermbg=gray ctermfg=black cterm=NONE + hi CursorLineNr ctermbg=gray ctermfg=darkblue cterm=NONE + hi helpLeadBlank ctermbg=white ctermfg=black cterm=NONE + hi helpNormal ctermbg=white ctermfg=black cterm=NONE + hi Visual ctermbg=gray ctermfg=black cterm=NONE + hi Pmenu ctermbg=white ctermfg=black cterm=NONE + hi PmenuSbar ctermbg=white ctermfg=black cterm=NONE + hi PmenuSel ctermbg=white ctermfg=black cterm=NONE + hi PmenuThumb ctermbg=white ctermfg=black cterm=NONE + hi FoldColumn ctermbg=white ctermfg=black cterm=NONE + hi Folded ctermbg=gray ctermfg=white cterm=NONE + hi WildMenu ctermbg=gray ctermfg=black cterm=NONE + hi SpecialKey ctermbg=white ctermfg=darkyellow cterm=NONE + hi DiffAdd ctermbg=white ctermfg=black cterm=NONE + hi DiffChange ctermbg=white ctermfg=black cterm=NONE + hi DiffDelete ctermbg=white ctermfg=black cterm=NONE + hi DiffText ctermbg=white ctermfg=black cterm=NONE + hi IncSearch ctermbg=black ctermfg=white cterm=NONE + hi Search ctermbg=yellow ctermfg=black cterm=NONE + hi Directory ctermbg=white ctermfg=black cterm=NONE + hi MatchParen ctermbg=black ctermfg=white cterm=NONE + hi SpellBad ctermbg=darkred ctermfg=white cterm=NONE + hi SpellCap ctermbg=white ctermfg=darkred cterm=undercurl + hi SpellLocal ctermbg=white ctermfg=darkyellow cterm=undercurl + hi SpellRare ctermbg=white ctermfg=darkgreen cterm=undercurl + hi ColorColumn ctermbg=black ctermfg=white cterm=NONE + hi SignColumn ctermbg=white ctermfg=black cterm=NONE + hi ErrorMsg ctermbg=darkred ctermfg=white cterm=NONE + hi ModeMsg ctermbg=white ctermfg=darkgreen cterm=NONE + hi MoreMsg ctermbg=white ctermfg=darkgreen cterm=NONE + hi Question ctermbg=white ctermfg=black cterm=NONE + hi Cursor ctermbg=black ctermfg=white cterm=NONE + hi CursorColumn ctermbg=darkyellow ctermfg=white cterm=NONE + hi QuickFixLine ctermbg=white ctermfg=black cterm=NONE + hi Conceal ctermbg=white ctermfg=black cterm=NONE + hi ToolbarLine ctermbg=white ctermfg=black cterm=NONE + hi ToolbarButton ctermbg=white ctermfg=black cterm=NONE + hi debugPC ctermbg=white ctermfg=black cterm=NONE + hi debugBreakpoint ctermbg=white ctermfg=black cterm=NONE +endif + +hi link EndOfBuffer NonText +hi link StatusLineTerm StatusLine +hi link StatusLineTermNC StatusLineNC +hi link VisualNOS Visual +hi link WarningMsg Error +hi link CursorIM Cursor +hi link Terminal Normal + +let g:terminal_ansi_colors = [ + \ '#000000', + \ '#870000', + \ '#00875f', + \ '#878700', + \ '#005faf', + \ '#875faf', + \ '#008080', + \ '#bcbcbc', + \ '#3a3a3a', + \ '#d7005f', + \ '#87ff00', + \ '#ffff5f', + \ '#5fafff', + \ '#d787ff', + \ '#87ff87', + \ '#ffffff', + \ ] + +" Generated with RNB (https://github.com/romainl/vim-rnb)