From af80529d082916603bd495a1bd628bfd5e8bea32 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 22 Jun 2022 10:49:13 +0000 Subject: [PATCH] Make special characters less visible --- vimrc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/vimrc b/vimrc index a69c8f0..15811dc 100644 --- a/vimrc +++ b/vimrc @@ -52,7 +52,7 @@ set textwidth=80 " Suggestions: 72, 80, 100 " All other settings. set autoindent set autoread -set background=light +set background=dark set backspace=indent,eol,start set cmdheight=1 set colorcolumn=73,81 @@ -137,15 +137,7 @@ if has('eval') endif " " Set theme for Terminal. - if &term == 'linux' - " Dark for Linux console. - set background=dark - colorscheme tempus_night - else - " Light for all other consoles. - set background=dark - colorscheme tempus_night - endif + colorscheme tempus_night endif "============================================================================= @@ -246,6 +238,13 @@ __EOF__ autocmd BufRead,BufNewFile * set omnifunc=v:lua.vim.lsp.omnifunc endif +" Customise colour schemes. Keep this near the end. +if &background ==# 'light' + highlight SpecialKey ctermfg=lightgray ctermbg=NONE guifg=lightgray guibg=NONE +else + highlight SpecialKey ctermfg=darkgray ctermbg=NONE guifg=darkgray guibg=NONE +endif + " Keep this as the last config line in the file. runtime vimrc.local