diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-17 17:51:16 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-17 17:51:16 +1200 |
commit | 0d9e5ceab0835819cff27a348691c07b341557d7 (patch) | |
tree | c14d445ccc1f5dea739ba5d3895f4d838216ab3d /vim | |
parent | Correct grec(1df) and gred(1df) manual pages (diff) | |
download | dotfiles-0d9e5ceab0835819cff27a348691c07b341557d7.tar.gz dotfiles-0d9e5ceab0835819cff27a348691c07b341557d7.zip |
Simplify a vimrc compound conditional with get()
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1009,10 +1009,7 @@ autocmd vimrc ColorScheme sahara " environment variable COLORFGBG or a response in v:termrbgresp that would set " it specifically. " -if !exists('$COLORFGBG') && ( - \ !exists('v:termrbgresp') - \ || v:termrbgresp ==# '' - \ ) +if !exists('$COLORFGBG') && get(v:, 'termrbgresp', '') ==# '' set background=dark endif |