From b0c7eafb4a76d6179ca625b0731907723b41db96 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 9 Mar 2017 00:14:50 +0000 Subject: [PATCH] Use '' not "" in fresh colorscheme --- colors/fresh.vim | 206 +++++++++++++++++++++++------------------------ 1 file changed, 103 insertions(+), 103 deletions(-) diff --git a/colors/fresh.vim b/colors/fresh.vim index 45fca57..6ad4b88 100644 --- a/colors/fresh.vim +++ b/colors/fresh.vim @@ -1,10 +1,10 @@ set background=dark -if exists("syntax_on") +if exists('syntax_on') syntax reset endif -let g:colors_name="fresh" +let g:colors_name='fresh' -if has("gui_running") || &t_Co == 256 +if has('gui_running') || &t_Co == 256 "" Colors {{{ let s:color_map = { \ '0': '#000000', '1': '#800000', '2': '#008000', '3': '#808000', @@ -76,126 +76,126 @@ if has("gui_running") || &t_Co == 256 "" Functions {{{ function! s:hi(group, fg, bg, attr) - exec "hi clear ".a:group - if a:fg != "" - exec "hi ".a:group." ctermfg=".a:fg." guifg="s:color_map[a:fg] + exec 'hi clear '.a:group + if a:fg !=# '' + exec 'hi '.a:group.' ctermfg='.a:fg.' guifg='s:color_map[a:fg] endif - if a:bg != "" - exec "hi ".a:group." ctermbg=".a:bg." guibg=".s:color_map[a:bg] + if a:bg !=# '' + exec 'hi '.a:group.' ctermbg='.a:bg.' guibg='.s:color_map[a:bg] endif - if a:attr != "" - exec "hi ".a:group." cterm=".a:attr." gui=".a:attr + if a:attr !=# '' + exec 'hi '.a:group.' cterm='.a:attr.' gui='.a:attr endif endfunction "" }}} "" Highlight Groups {{{ - call s:hi("ColorColumn", "", "", "") - call s:hi("Conceal", "", "", "") - call s:hi("Cursor", "", "", "reverse") - call s:hi("CursorIM", "", "", "") - call s:hi("CursorColumn", "235", "", "") - call s:hi("CursorLine", "", "", "") - call s:hi("Directory", "", "", "") - call s:hi("DiffAdd", "2", "", "") - call s:hi("DiffChange", "", "", "") - call s:hi("DiffDelete", "1", "", "") - call s:hi("DiffText", "3", "", "") - call s:hi("ErrorMsg", "1", "", "") - call s:hi("VertSplit", "235", "235", "") - call s:hi("Folded", "8", "233", "") - call s:hi("FoldColumn", "", "", "") - call s:hi("SignColumn", "", "233", "") - call s:hi("IncSearch", "", "", "reverse") - call s:hi("LineNr", "240", "233", "") - call s:hi("CursorLineNr", "34", "233", "") - call s:hi("MatchParen", "", "", "") - call s:hi("ModeMsg", "", "", "") - call s:hi("MoreMsg", "12", "", "") - call s:hi("NonText", "", "", "") - call s:hi("Normal", "7", "232", "") - call s:hi("Pmenu", "", "235", "") - call s:hi("PmenuSel", "", "", "reverse") - call s:hi("PmenuSbar", "", "", "") - call s:hi("PmenuThumb", "", "", "") - call s:hi("Question", "69", "", "") - call s:hi("Search", "11", "", "") - call s:hi("SpecialKey", "", "", "") - call s:hi("SpellBad", "160", "", "") - call s:hi("SpellCap", "12", "", "") - call s:hi("SpellLocal", "5", "", "") - call s:hi("SpellRare", "3", "", "") - call s:hi("StatusLine", "15", "233", "") - call s:hi("StatusLineNC", "", "235", "") - call s:hi("TabLine", "246", "235", "bold") - call s:hi("TabLineFill", "", "235", "") - call s:hi("TabLineSel", "248", "", "bold") - call s:hi("Title", "", "", "bold") - call s:hi("Visual", "", "235", "") - call s:hi("VisualNOS", "", "", "") - call s:hi("WarningMsg", "92", "", "") - call s:hi("WildMenu", "22", "148", "bold") - call s:hi("Menu", "", "", "") - call s:hi("Scrollbar", "", "", "") - call s:hi("Tooltip", "", "", "") + call s:hi('ColorColumn', '', '', '') + call s:hi('Conceal', '', '', '') + call s:hi('Cursor', '', '', 'reverse') + call s:hi('CursorIM', '', '', '') + call s:hi('CursorColumn', '235', '', '') + call s:hi('CursorLine', '', '', '') + call s:hi('Directory', '', '', '') + call s:hi('DiffAdd', '2', '', '') + call s:hi('DiffChange', '', '', '') + call s:hi('DiffDelete', '1', '', '') + call s:hi('DiffText', '3', '', '') + call s:hi('ErrorMsg', '1', '', '') + call s:hi('VertSplit', '235', '235', '') + call s:hi('Folded', '8', '233', '') + call s:hi('FoldColumn', '', '', '') + call s:hi('SignColumn', '', '233', '') + call s:hi('IncSearch', '', '', 'reverse') + call s:hi('LineNr', '240', '233', '') + call s:hi('CursorLineNr', '34', '233', '') + call s:hi('MatchParen', '', '', '') + call s:hi('ModeMsg', '', '', '') + call s:hi('MoreMsg', '12', '', '') + call s:hi('NonText', '', '', '') + call s:hi('Normal', '7', '232', '') + call s:hi('Pmenu', '', '235', '') + call s:hi('PmenuSel', '', '', 'reverse') + call s:hi('PmenuSbar', '', '', '') + call s:hi('PmenuThumb', '', '', '') + call s:hi('Question', '69', '', '') + call s:hi('Search', '11', '', '') + call s:hi('SpecialKey', '', '', '') + call s:hi('SpellBad', '160', '', '') + call s:hi('SpellCap', '12', '', '') + call s:hi('SpellLocal', '5', '', '') + call s:hi('SpellRare', '3', '', '') + call s:hi('StatusLine', '15', '233', '') + call s:hi('StatusLineNC', '', '235', '') + call s:hi('TabLine', '246', '235', 'bold') + call s:hi('TabLineFill', '', '235', '') + call s:hi('TabLineSel', '248', '', 'bold') + call s:hi('Title', '', '', 'bold') + call s:hi('Visual', '', '235', '') + call s:hi('VisualNOS', '', '', '') + call s:hi('WarningMsg', '92', '', '') + call s:hi('WildMenu', '22', '148', 'bold') + call s:hi('Menu', '', '', '') + call s:hi('Scrollbar', '', '', '') + call s:hi('Tooltip', '', '', '') "" }}} "" Syntax Groups {{{ - call s:hi("Comment", "8", "", "") + call s:hi('Comment', '8', '', '') - call s:hi("Constant", "168", "", "") - call s:hi("String", "173", "", "") - call s:hi("Character", "221", "", "") - call s:hi("Number", "162", "", "") - call s:hi("Boolean", "162", "", "") - call s:hi("Float", "162", "", "") + call s:hi('Constant', '168', '', '') + call s:hi('String', '173', '', '') + call s:hi('Character', '221', '', '') + call s:hi('Number', '162', '', '') + call s:hi('Boolean', '162', '', '') + call s:hi('Float', '162', '', '') - call s:hi("Identifier", "60", "", "") - call s:hi("Function", "71", "", "") + call s:hi('Identifier', '60', '', '') + call s:hi('Function', '71', '', '') - call s:hi("Statement", "30", "", "") - call s:hi("Conditional", "69", "", "") - call s:hi("Repeat", "69", "", "") - call s:hi("Label", "69", "", "") - call s:hi("Operator", "166", "", "") - call s:hi("Keyword", "", "", "") - call s:hi("Exception", "", "", "") + call s:hi('Statement', '30', '', '') + call s:hi('Conditional', '69', '', '') + call s:hi('Repeat', '69', '', '') + call s:hi('Label', '69', '', '') + call s:hi('Operator', '166', '', '') + call s:hi('Keyword', '', '', '') + call s:hi('Exception', '', '', '') - call s:hi("PreProc", "102", "", "") - call s:hi("Include", "65", "", "") - call s:hi("Define", "", "", "") - call s:hi("Macro", "", "", "") - call s:hi("PreCondit", "61", "", "") + call s:hi('PreProc', '102', '', '') + call s:hi('Include', '65', '', '') + call s:hi('Define', '', '', '') + call s:hi('Macro', '', '', '') + call s:hi('PreCondit', '61', '', '') - call s:hi("Type", "75", "", "") - call s:hi("StorageClass", "66", "", "") - call s:hi("Structure", "69", "", "") - call s:hi("Typedef", "75", "", "") + call s:hi('Type', '75', '', '') + call s:hi('StorageClass', '66', '', '') + call s:hi('Structure', '69', '', '') + call s:hi('Typedef', '75', '', '') - call s:hi("Special", "179", "", "") - call s:hi("SpecialChar", "", "", "") - call s:hi("Tag", "", "", "") - call s:hi("Delimiter", "", "", "") - call s:hi("SpecialComment", "246", "", "") - call s:hi("Debug", "", "", "") + call s:hi('Special', '179', '', '') + call s:hi('SpecialChar', '', '', '') + call s:hi('Tag', '', '', '') + call s:hi('Delimiter', '', '', '') + call s:hi('SpecialComment', '246', '', '') + call s:hi('Debug', '', '', '') - call s:hi("Underlined", "33", "", "underline") - call s:hi("Ignore", "", "", "") - call s:hi("Error", "1", "", "") - call s:hi("Todo", "202", "", "bold") + call s:hi('Underlined', '33', '', 'underline') + call s:hi('Ignore', '', '', '') + call s:hi('Error', '1', '', '') + call s:hi('Todo', '202', '', 'bold') "" }}} "" Custom Groups {{{ - call s:hi("Block", "", "", "") - call s:hi("Note", "40", "", "bold") - call s:hi("Important", "220", "", "bold") - call s:hi("Research", "202", "", "bold") + call s:hi('Block', '', '', '') + call s:hi('Note', '40', '', 'bold') + call s:hi('Important', '220', '', 'bold') + call s:hi('Research', '202', '', 'bold') - call s:hi("SyntasticErrorSign", "160", "233", "bold") - call s:hi("SyntasticWarningSign", "129", "233", "bold") - call s:hi("SyntasticErrorLine", "", "", "") - call s:hi("SyntasticWarningLine", "", "", "") - call s:hi("SyntasticError", "160", "", "") - call s:hi("SyntasticWarning", "129", "", "") + call s:hi('SyntasticErrorSign', '160', '233', 'bold') + call s:hi('SyntasticWarningSign', '129', '233', 'bold') + call s:hi('SyntasticErrorLine', '', '', '') + call s:hi('SyntasticWarningLine', '', '', '') + call s:hi('SyntasticError', '160', '', '') + call s:hi('SyntasticWarning', '129', '', '') "" }}} endif