From 755c1e7a89d1c026279e64dceb54c333940e6d6b Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sun, 17 Mar 2019 13:18:29 +0100 Subject: [PATCH] Beautify some parts of the code Some function calls have just been reorder in and between sections. --- colors/odyssey.vim | 136 ++++++++++++++++++++++++--------------------- 1 file changed, 73 insertions(+), 63 deletions(-) diff --git a/colors/odyssey.vim b/colors/odyssey.vim index ab60f02..d8edf3a 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -180,78 +180,88 @@ endfunction " }}} " User Interface {{{ -call s:HL( 'SpecialKey', 'background', 'warning', 'none') -call s:HL( 'EndOfBuffer', 'background', 'linenumber', 'none') -call s:HL( 'NonText', 'background', 'linenumber', 'none') -call s:HL( 'Directory', 'background', 'foreground', 'none') -call s:HL( 'ErrorMsg', 'background', 'error', 'bold') -call s:HL( 'MoreMsg', 'background', 'warning', 'none') -call s:HL( 'ModeMsg', 'background', 'warning', 'none') -call s:HL( 'IncSearch', 'background', 'foreground', 'reverse') -call s:HL( 'Search', 'background', 'linenumber', 'reverse') -call s:HL( 'LineNr', 'background', 'linenumber', 'none') -call s:HL( 'CursorLineNr', 'cursorline', 'foreground', 'none') -call s:HL( 'Question', 'background', 'warning', 'none') -call s:HL( 'StatusLine', 'cursorline', 'foreground', 'none') -call s:HL( 'StatusLineNC', 'beyondback', 'linenumber', 'none') -call s:HL( 'VertSplit', 'beyondback', 'beyondback', 'none') -call s:HL( 'Title', 'background', 'procedure', 'none') -call s:HL( 'Visual', 'background', 'foreground', 'reverse') -call s:HL( 'VisualNOS', 'background', 'foreground', 'reverse') -call s:HL( 'WarningMsg', 'background', 'warning', 'bold') -call s:HL( 'WildMenu', 'cursorline', 'warning', 'none') -call s:HL( 'Folded', 'foldedline', 'linenumber', 'none') -call s:HL( 'FoldColumn', 'foldedline', 'linenumber', 'none') -call s:HL( 'DiffAdd', 'procedure', 'background', 'none') -call s:HL( 'DiffChange', 'warning', 'background', 'none') -call s:HL( 'DiffDelete', 'error', 'background', 'none') -call s:HL( 'DiffText', 'error', 'background', 'none') -call s:HL( 'SignColumn', 'background', 'error', 'none') -call s:HL( 'Conceal', 'background', 'keyword', 'none') +call s:HL( 'SpecialKey', 'background', 'warning', 'none') +call s:HL( 'EndOfBuffer', 'background', 'linenumber', 'none') +call s:HL( 'NonText', 'background', 'linenumber', 'none') +call s:HL( 'Directory', 'background', 'foreground', 'none') +call s:HL( 'ErrorMsg', 'background', 'error', 'bold') +call s:HL( 'MoreMsg', 'background', 'warning', 'none') +call s:HL( 'ModeMsg', 'background', 'warning', 'none') +call s:HL( 'IncSearch', 'background', 'foreground', 'reverse') +call s:HL( 'Search', 'background', 'linenumber', 'reverse') +call s:HL( 'LineNr', 'background', 'linenumber', 'none') +call s:HL( 'CursorLineNr', 'cursorline', 'foreground', 'none') +call s:HL( 'Question', 'background', 'warning', 'none') +call s:HL( 'StatusLine', 'cursorline', 'foreground', 'none') +call s:HL( 'StatusLineNC', 'beyondback', 'linenumber', 'none') +call s:HL( 'VertSplit', 'beyondback', 'beyondback', 'none') +call s:HL( 'Title', 'background', 'procedure', 'none') +call s:HL( 'Visual', 'background', 'foreground', 'reverse') +call s:HL( 'VisualNOS', 'background', 'foreground', 'reverse') +call s:HL( 'WarningMsg', 'background', 'warning', 'bold') +call s:HL( 'WildMenu', 'cursorline', 'warning', 'none') +call s:HL( 'Folded', 'foldedline', 'linenumber', 'none') +call s:HL( 'FoldColumn', 'foldedline', 'linenumber', 'none') +call s:HL( 'DiffAdd', 'procedure', 'background', 'none') +call s:HL( 'DiffChange', 'warning', 'background', 'none') +call s:HL( 'DiffDelete', 'error', 'background', 'none') +call s:HL( 'DiffText', 'error', 'background', 'none') +call s:HL( 'SignColumn', 'background', 'error', 'none') +call s:HL( 'Conceal', 'background', 'keyword', 'none') call s:HL( 'SpellBad', 'background', 'error', 'underline') call s:HL( 'SpellCap', 'background', 'warning', 'underline') call s:HL( 'SpellRare', 'background', 'constant', 'underline') call s:HL( 'SpellLocal', 'background', 'keyword', 'underline') -call s:HL( 'Pmenu', 'foldedline', 'linenumber', 'none') -call s:HL( 'PmenuSel', 'background', 'foreground', 'reverse') -call s:HL( 'PmenuSbar', 'foldedline', 'foldedline', 'none') -call s:HL( 'PmenuThumb', 'linenumber', 'linenumber', 'none') -call s:HL( 'TabLine', 'background', 'linenumber', 'none') -call s:HL( 'TabLineSel', 'background', 'foreground', 'none') -call s:HL( 'TabLineFill', 'beyondback', 'linenumber', 'none') -call s:HL( 'CursorColumn', 'cursorline', 'foreground', 'none') -call s:HL( 'CursorLine', 'cursorline', 'none', 'none') -call s:HL( 'ColorColumn', 'foldedline', 'none', 'none') -call s:HL( 'StatusLineTerm', 'cursorline', 'foreground', 'none') -call s:HL('StatusLineTermNC', 'beyondback', 'linenumber', 'none') -call s:HL( 'Cursor', 'background', 'foreground', 'reverse') -call s:HL( 'lCursor', 'background', 'foreground', 'reverse') +call s:HL( 'Pmenu', 'foldedline', 'linenumber', 'none') +call s:HL( 'PmenuSel', 'background', 'foreground', 'reverse') +call s:HL( 'PmenuSbar', 'foldedline', 'foldedline', 'none') +call s:HL( 'PmenuThumb', 'linenumber', 'linenumber', 'none') +call s:HL( 'TabLine', 'background', 'linenumber', 'none') +call s:HL( 'TabLineSel', 'background', 'foreground', 'none') +call s:HL( 'TabLineFill', 'beyondback', 'linenumber', 'none') +call s:HL( 'CursorColumn', 'cursorline', 'foreground', 'none') +call s:HL( 'CursorLine', 'cursorline', 'none', 'none') +call s:HL( 'ColorColumn', 'foldedline', 'none', 'none') +call s:HL( 'StatusLineTerm', 'cursorline', 'foreground', 'none') +call s:HL('StatusLineTermNC', 'beyondback', 'linenumber', 'none') +call s:HL( 'Cursor', 'background', 'foreground', 'reverse') +call s:HL( 'lCursor', 'background', 'foreground', 'reverse') call s:HL( 'MatchParen', 'background', 'warning', 'underline') -call s:HL( 'ToolbarLine', 'linenumber', 'linenumber', 'none') -call s:HL( 'ToolbarButton', 'background', 'linenumber', 'reverse') +call s:HL( 'ToolbarLine', 'linenumber', 'linenumber', 'none') +call s:HL( 'ToolbarButton', 'background', 'linenumber', 'reverse') +call s:HL( 'Normal', 'background', 'foreground', 'none') " }}} " Default Syntax {{{ -call s:HL( 'Comment', 'background', 'linenumber', 'none') -call s:HL( 'Constant', 'background', 'constant', 'none') -call s:HL( 'Special', 'background', 'warning', 'none') -call s:HL( 'Identifier', 'background', 'procedure', 'none') -call s:HL( 'Statement', 'background', 'keyword', 'none') -call s:HL( 'Preproc', 'background', 'warning', 'none') -call s:HL( 'Type', 'background', 'type', 'none') -call s:HL( 'Underlined', 'background', 'foreground', 'underline') -call s:HL( 'Ignore', 'background', 'background', 'none') -call s:HL( 'Error', 'background', 'error', 'bold') -call s:HL( 'Todo', 'background', 'warning', 'bold') -call s:HL( 'String', 'background', 'constant', 'none') -call s:HL( 'Number', 'background', 'constant', 'none') -call s:HL( 'Function', 'background', 'procedure', 'none') -call s:HL( 'Conditional', 'background', 'keyword', 'none') -call s:HL( 'Tag', 'background', 'warning', 'none') -call s:HL( 'SpecialChar', 'background', 'warning', 'none') -call s:HL( 'Delimiter', 'background', 'warning', 'none') -call s:HL( 'Normal', 'background', 'foreground', 'none') +call s:HL( 'Comment', 'background', 'linenumber', 'none') + +call s:HL( 'Constant', 'background', 'constant', 'none') +call s:HL( 'String', 'background', 'constant', 'none') +call s:HL( 'Number', 'background', 'constant', 'none') + +call s:HL( 'Function', 'background', 'procedure', 'none') +call s:HL( 'Identifier', 'background', 'procedure', 'none') + +call s:HL( 'Statement', 'background', 'keyword', 'none') +call s:HL('Conditional', 'background', 'keyword', 'none') + +call s:HL( 'Preproc', 'background', 'warning', 'none') + +call s:HL( 'Type', 'background', 'type', 'none') + +call s:HL( 'Special', 'background', 'warning', 'none') +call s:HL('SpecialChar', 'background', 'warning', 'none') +call s:HL( 'Tag', 'background', 'warning', 'none') +call s:HL( 'Delimiter', 'background', 'warning', 'none') + +call s:HL( 'Underlined', 'background', 'foreground', 'underline') + +call s:HL( 'Ignore', 'background', 'background', 'none') + +call s:HL( 'Error', 'background', 'error', 'bold') + +call s:HL( 'Todo', 'background', 'warning', 'bold') " }}} " vim: foldmethod=marker