diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-09 13:41:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-09 13:41:18 +1200 |
commit | 5213e298ce70fc27b69643151d4609adf565036c (patch) | |
tree | 44d7884101d90180f028ad818c82ee0a980aa7c2 /vim/vimrc | |
parent | Use nested single quotes rather than double (diff) | |
download | dotfiles-5213e298ce70fc27b69643151d4609adf565036c.tar.gz dotfiles-5213e298ce70fc27b69643151d4609adf565036c.zip |
Use more idiomatic approach to get() defaulting
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |