From c11be6d108b47dbe752988a8be60a48f7813ec83 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Fri, 5 May 2017 09:55:57 -0700 Subject: [PATCH] Lighten up whitespace listchars --- config/nvim/init.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 91a4c43..7575f8a 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -25,6 +25,17 @@ set background=dark colorscheme solarized call togglebg#map("") +function SetWhitespace() + if &background == 'dark' + hi Whitespace ctermfg=0 + else + hi Whitespace ctermfg=7 + end +endfunction + +call SetWhitespace() +map :ToggleBG :call SetWhitespace() + set number set nowrap filetype plugin indent on