X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/4b0466cec34845915c7fd060c79e3e466a0a9420..0b2f7e52830a48089ff4d762633c69b8d15142a3:/templates/_common.colortemplate diff --git a/templates/_common.colortemplate b/templates/_common.colortemplate index c8df60b..0cc207c 100644 --- a/templates/_common.colortemplate +++ b/templates/_common.colortemplate @@ -1,54 +1,78 @@ # vim: ft=colortemplate fdm=marker # Default highlight groups {{{ -verbatim -if !has('gui_running') && get(g:, '@optionprefix_transp_bg', 0) -endverbatim - # Transparent background - Normal fg1 none - CursorLineNr yellow none - FoldColumn brightblack none - SignColumn fg2 none - VertSplit bg3 none -verbatim -else -endverbatim - # Opaque background - Normal fg1 bg0 - CursorLineNr yellow bg1 - FoldColumn brightblack bg1 - SignColumn fg2 bg1 - VertSplit bg3 bg0 -verbatim -endif -endverbatim +#if !has('gui_running') && get(g:, '@optionprefix_dimmed', 0) + # dimmed colours + Conceal darkblue none + Constant darkgreen none + Directory darkblue none bold + Error darkred none t=reverse,bold g=standout,bold + Function darkcyan none + Identifier darkblue none + ModeMsg darkblue none + MoreMsg darkgreen none + PreProc darkcyan none + Statement darkred none + Special darkyellow none + Todo darkcyan none reverse + WarningMsg darkred none + WildMenu darkblue bg2 bold +#else + # default colours + Conceal blue none + Constant green none + Directory blue none bold + Error red none t=reverse,bold g=standout,bold + Function cyan none + Identifier blue none + ModeMsg blue none + MoreMsg green none + PreProc cyan none + Statement red none + Special yellow none + Todo cyan none reverse + WarningMsg red none + WildMenu blue bg2 bold +#endif +#if !has('gui_running') && get(g:, '@optionprefix_transparent', 0) + # transparent background + Normal fg1 none + CursorLineNr yellow none + FoldColumn darkgray none + SignColumn fg2 none + VertSplit bg3 none +#else + # opaque background + Normal fg1 bg0 + CursorLineNr yellow bg1 + FoldColumn darkgray bg1 + SignColumn fg2 bg1 + VertSplit bg3 bg0 +#endif # Group Fg Bg Attributes -ColorColumn none bg1 -Conceal blue none -Cursor none none reverse -CursorColumn -> CursorLine -CursorLine none bg1 bold,italic -DiffAdd fg4 brightgreen -DiffChange fg4 brightblue -DiffDelete fg4 brightred -DiffText fg4 brightyellow -Directory blue none bold +ColorColumn none bg1 bold +Cursor none none reverse,bold +CursorColumn none none italic,bold +CursorLine none none italic,bold +DiffAdd brightgreen black reverse +DiffAdded brightgreen black reverse +DiffChange brightblue black reverse +DiffDelete brightred black reverse +DiffRemoved brightred black reverse +DiffText brightgreen black reverse EndOfBuffer bg0 none -Error red bg0 bold,reverse -ErrorMsg bg0 red bold -Folded brightblack bg1 g=italic -IncSearch brightyellow black reverse -LineNr bg2 bg1 +ErrorMsg -> Error +Folded bg3 bg1 g=italic +IncSearch yellow black reverse +LineNr bg3 bg1 MatchParen none bg2 bold -ModeMsg yellow none bold -MoreMsg yellow none bold NonText bg4 none Pmenu fg1 bg2 PmenuSbar none bg2 -PmenuSel bg1 blue bold +PmenuSel bg1 fg2 bold PmenuThumb none bg4 -Question yellow none bold +Question darkyellow none QuickFixLine -> Search Search brightyellow black reverse SpecialKey bg4 none @@ -66,44 +90,34 @@ TabLineSel fg1 bg1 Title fg0 none bold Visual none bg1 VisualNOS -> Visual -WarningMsg red none bold -WildMenu blue bg2 bold # Other conventional group names (see `:help group-name`) -Boolean magenta none -Character magenta none -Comment brightblack none g=italic -Conditional red none -Constant magenta none -Define cyan none -Debug red none -Delimiter -> Statement -Error red bg0 bold,reverse -Exception red none -Float magenta none -Function blue none bold -Identifier cyan none +Boolean -> Constant +Character -> Constant +Comment fg3 none +Conditional -> Statement +Define -> PreProc +Debug -> Special +Delimiter -> Special +Exception -> Statement +Float -> Constant Ignore fg none -Include cyan none -Keyword red none +Include -> PreProc +Keyword -> Statement Label -> Statement -Macro cyan none -Number magenta none -Operator -> Normal -PreCondit cyan none -PreProc cyan none -Repeat red none -SpecialChar red none -SpecialComment red none -Statement red none -StorageClass green none -Special yellow none -String green none -Structure cyan none +Macro -> PreProc +Number -> Constant +Operator -> Statement +PreCondit -> PreProc +Repeat -> Statement +SpecialChar -> Special +SpecialComment -> Special +StorageClass -> Type +String -> Constant +Structure -> Type Tag -> Special -Todo fg bg0 t=bold g=bold,italic -Type cyan none -Typedef cyan none -Underlined blue none underline +Type darkcyan none +Typedef -> Type +Underlined none none underline # Language mapping cursor lCursor -> Cursor # See `:help CursorIM` @@ -113,20 +127,6 @@ ToolbarLine none bg3 ToolbarButton fg0 bg3 bold # }}} -# Italics {{{ -verbatim -if get(g:, "@optionprefix_italic", 0) - hi Comment cterm=italic - hi Folded cterm=italic - hi SpellBad cterm=italic,underline - hi SpellCap cterm=italic,underline - hi SpellLocal cterm=italic,underline - hi SpellRare cterm=italic,underline - hi Todo cterm=italic -endif -endverbatim -# }}} - # Additional highlight groups {{{ # Input mode cursor iCursor -> Cursor @@ -143,6 +143,7 @@ Warnings yellow bg0 reverse # }}} # Terminal colors {{{ -Include: _terminal.colortemplate +TermCursor -> Cursor +TermCursorNC bg1 fg1 # }}}