From 3a20caa516939a94c9c321f34cca6b8061829997 Mon Sep 17 00:00:00 2001 From: K1DV5 Date: Wed, 19 Sep 2018 19:41:15 +0300 Subject: [PATCH 1/2] improved tex & python w/ vim-python/python-syntax --- colors/codedark.vim | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index 529ce0c..7c018c0 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -113,7 +113,7 @@ let s:cdBlue = {'gui': '#569CD6', 'cterm': s:cterm0D, 'cterm256': '75'} let s:cdDarkBlue = {'gui': '#223E55', 'cterm': s:cterm0D, 'cterm256': '73'} let s:cdLightBlue = {'gui': '#9CDCFE', 'cterm': s:cterm0C, 'cterm256': '117'} if g:codedark_conservative | let s:cdLightBlue = s:cdFront | endif -let s:cdGreen = {'gui': '#608B4E', 'cterm': s:cterm0B, 'cterm256': '65'} +let s:cdGreen = {'gui': '#6A9955', 'cterm': s:cterm0B, 'cterm256': '65'} let s:cdBlueGreen = {'gui': '#4EC9B0', 'cterm': s:cterm0F, 'cterm256': '43'} let s:cdLightGreen = {'gui': '#B5CEA8', 'cterm': s:cterm09, 'cterm256': '151'} let s:cdRed = {'gui': '#F44747', 'cterm': s:cterm08, 'cterm256': '203'} @@ -189,10 +189,9 @@ call hi('Repeat', s:cdPink, {}, 'none', {}) call hi('Label', s:cdPink, {}, 'none', {}) call hi('Operator', s:cdFront, {}, 'none', {}) call hi('Keyword', s:cdPink, {}, 'none', {}) -call hi('pythonOperator', s:cdPink, {}, 'none', {}) call hi('Exception', s:cdPink, {}, 'none', {}) -call hi('PreProc', s:cdPink, {}, 'none', {}) +call hi('PreProc', s:cdBlue, {}, 'none', {}) call hi('Include', s:cdPink, {}, 'none', {}) call hi('Define', s:cdPink, {}, 'none', {}) call hi('Macro', s:cdPink, {}, 'none', {}) @@ -282,3 +281,28 @@ call hi('goReceiverType', s:cdDarkBlue, {}, 'none', {}) call hi('goFunctionCall', s:cdYellow, {}, 'none', {}) call hi('goMethodCall', s:cdYellow, {}, 'none', {}) call hi('goSingleDecl', s:cdLightBlue, {}, 'none', {}) + +" Python: +if exists('g:python_highlight_builtin_funcs_kwarg') + call hi('pythonStatement', s:cdBlue, {}, 'none', {}) + call hi('pythonOperator', s:cdBlue, {}, 'none', {}) + call hi('pythonException', s:cdPink, {}, 'none', {}) + call hi('pythonExClass', s:cdBlueGreen, {}, 'none', {}) + call hi('pythonBuiltinObj', s:cdLightBlue, {}, 'none', {}) + call hi('pythonBuiltinType', s:cdBlueGreen, {}, 'none', {}) + call hi('pythonBoolean', s:cdBlue, {}, 'none', {}) + call hi('pythonNone', s:cdBlue, {}, 'none', {}) + call hi('pythonTodo', s:cdBlue, {}, 'none', {}) + call hi('pythonClassVar', s:cdBlue, {}, 'none', {}) + call hi('pythonClassDef', s:cdBlueGreen, {}, 'none', {}) +endif + +" TeX: +call hi('texStatement', s:cdBlue, {}, 'none', {}) +call hi('texBeginEnd', s:cdYellow, {}, 'none', {}) +call hi('texBeginEndName', s:cdLightBlue, {}, 'none', {}) +call hi('texOption', s:cdLightBlue, {}, 'none', {}) +call hi('texBeginEndModifier', s:cdLightBlue, {}, 'none', {}) +call hi('texDocType', s:cdPink, {}, 'none', {}) +call hi('texDocTypeArgs', s:cdLightBlue, {}, 'none', {}) + From 062f8c1aa4cfaf3c6a2d1530807026cee95ea363 Mon Sep 17 00:00:00 2001 From: Kidus Adugna <40162008+K1DV5@users.noreply.github.com> Date: Tue, 8 Jan 2019 09:56:56 +0300 Subject: [PATCH 2/2] remove color changes and check on the python hl --- colors/codedark.vim | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/colors/codedark.vim b/colors/codedark.vim index 7c018c0..49ec23a 100644 --- a/colors/codedark.vim +++ b/colors/codedark.vim @@ -113,7 +113,7 @@ let s:cdBlue = {'gui': '#569CD6', 'cterm': s:cterm0D, 'cterm256': '75'} let s:cdDarkBlue = {'gui': '#223E55', 'cterm': s:cterm0D, 'cterm256': '73'} let s:cdLightBlue = {'gui': '#9CDCFE', 'cterm': s:cterm0C, 'cterm256': '117'} if g:codedark_conservative | let s:cdLightBlue = s:cdFront | endif -let s:cdGreen = {'gui': '#6A9955', 'cterm': s:cterm0B, 'cterm256': '65'} +let s:cdGreen = {'gui': '#608B4E', 'cterm': s:cterm0B, 'cterm256': '65'} let s:cdBlueGreen = {'gui': '#4EC9B0', 'cterm': s:cterm0F, 'cterm256': '43'} let s:cdLightGreen = {'gui': '#B5CEA8', 'cterm': s:cterm09, 'cterm256': '151'} let s:cdRed = {'gui': '#F44747', 'cterm': s:cterm08, 'cterm256': '203'} @@ -191,7 +191,7 @@ call hi('Operator', s:cdFront, {}, 'none', {}) call hi('Keyword', s:cdPink, {}, 'none', {}) call hi('Exception', s:cdPink, {}, 'none', {}) -call hi('PreProc', s:cdBlue, {}, 'none', {}) +call hi('PreProc', s:cdPink, {}, 'none', {}) call hi('Include', s:cdPink, {}, 'none', {}) call hi('Define', s:cdPink, {}, 'none', {}) call hi('Macro', s:cdPink, {}, 'none', {}) @@ -283,19 +283,17 @@ call hi('goMethodCall', s:cdYellow, {}, 'none', {}) call hi('goSingleDecl', s:cdLightBlue, {}, 'none', {}) " Python: -if exists('g:python_highlight_builtin_funcs_kwarg') - call hi('pythonStatement', s:cdBlue, {}, 'none', {}) - call hi('pythonOperator', s:cdBlue, {}, 'none', {}) - call hi('pythonException', s:cdPink, {}, 'none', {}) - call hi('pythonExClass', s:cdBlueGreen, {}, 'none', {}) - call hi('pythonBuiltinObj', s:cdLightBlue, {}, 'none', {}) - call hi('pythonBuiltinType', s:cdBlueGreen, {}, 'none', {}) - call hi('pythonBoolean', s:cdBlue, {}, 'none', {}) - call hi('pythonNone', s:cdBlue, {}, 'none', {}) - call hi('pythonTodo', s:cdBlue, {}, 'none', {}) - call hi('pythonClassVar', s:cdBlue, {}, 'none', {}) - call hi('pythonClassDef', s:cdBlueGreen, {}, 'none', {}) -endif +call hi('pythonStatement', s:cdBlue, {}, 'none', {}) +call hi('pythonOperator', s:cdBlue, {}, 'none', {}) +call hi('pythonException', s:cdPink, {}, 'none', {}) +call hi('pythonExClass', s:cdBlueGreen, {}, 'none', {}) +call hi('pythonBuiltinObj', s:cdLightBlue, {}, 'none', {}) +call hi('pythonBuiltinType', s:cdBlueGreen, {}, 'none', {}) +call hi('pythonBoolean', s:cdBlue, {}, 'none', {}) +call hi('pythonNone', s:cdBlue, {}, 'none', {}) +call hi('pythonTodo', s:cdBlue, {}, 'none', {}) +call hi('pythonClassVar', s:cdBlue, {}, 'none', {}) +call hi('pythonClassDef', s:cdBlueGreen, {}, 'none', {}) " TeX: call hi('texStatement', s:cdBlue, {}, 'none', {})