aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-17 17:51:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-17 17:51:16 +1200
commit0d9e5ceab0835819cff27a348691c07b341557d7 (patch)
treec14d445ccc1f5dea739ba5d3895f4d838216ab3d /vim
parentCorrect grec(1df) and gred(1df) manual pages (diff)
downloaddotfiles-0d9e5ceab0835819cff27a348691c07b341557d7.tar.gz
dotfiles-0d9e5ceab0835819cff27a348691c07b341557d7.zip
Simplify a vimrc compound conditional with get()
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc5
1 files changed, 1 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0fc9d24b..c0729408 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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