From 5213e298ce70fc27b69643151d4609adf565036c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 9 May 2020 13:41:18 +1200 Subject: Use more idiomatic approach to get() defaulting --- vim/vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index ecce5812..986c2afc 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -2,7 +2,7 @@ " Tom Ryder (tejr)’s Literate Vimrc " ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ " -" Last updated: Fri, 08 May 2020 08:47:55 UTC +" Last updated: Fri, 08 May 2020 11:31:29 UTC " " │ And I was lifted up in heart, and thought " │ Of all my late-shown prowess in the lists, @@ -939,7 +939,7 @@ autocmd vimrc ColorScheme * " environment variable COLORFGBG or a response in v:termrbgresp that would set " it specifically. " -if !exists('$COLORFGBG') && get(v:, 'termrbgresp', '') ==# '' +if !exists('$COLORFGBG') && !get(v:, 'termrbgresp') set background=dark endif -- cgit v1.2.3