aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-12-08 22:07:20 +0100
committerTeddy Wing2023-12-09 00:20:40 +0100
commitd30df22ff2c949d4b6445b0f4a091d8005301656 (patch)
treee81e1de870f595325eabd3b91ce02df53e9be972
parent7c18c103fb5ab16abcd834e7a60bbd55ecc44e09 (diff)
downloaddotvim-d30df22ff2c949d4b6445b0f4a091d8005301656.tar.bz2
colors/twilight256.vim: Increase contrast of diff background colours
Change the diff background colours from their defaults to make the text in the foreground easier to read.
-rw-r--r--colors/twilight256.vim11
1 files changed, 8 insertions, 3 deletions
diff --git a/colors/twilight256.vim b/colors/twilight256.vim
index 0d5d58b..83e7114 100644
--- a/colors/twilight256.vim
+++ b/colors/twilight256.vim
@@ -37,6 +37,11 @@
" * Use a lighter grey for comments to increase contrast and make text
" easier to read.
"
+" 2023.12.08:
+" * Use darker background colours for DiffAdd, DiffChange, and DiffText to
+" increase contrast and reduce vibration relative to the foreground
+" text. This makes the text with diff highlighting easier to read.
+"
set background=dark
if version > 580
@@ -269,10 +274,10 @@ if has("gui_running") || &t_Co == 88 || &t_Co == 256
"call <SID>X("Cursor", "708090", "f0e68c", "")
"CursorIM
"Directory
- "DiffAdd
- "DiffChange
+ highlight DiffAdd term=bold ctermbg=17 guibg=DarkBlue
+ highlight DiffChange term=bold ctermbg=53 guibg=DarkMagenta
"DiffDelete
- "DiffText
+ highlight DiffText term=reverse cterm=bold ctermbg=1 gui=bold guibg=Red
"ErrorMsg
"call <SID>X("VertSplit", "c2bfa5", "7f7f7f", "reverse")
"call <SID>X("Folded", "ffd700", "4d4d4d", "")