aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-24 15:57:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-24 15:57:04 +1200
commitdb402d2d24d28bd892cd60de95aa78e3ce8271db (patch)
tree4c2a6ade25b5d503fceb7ca3284e4fd3b62fc32f /vim
parentSwitch to a hyphen for trailing whitespace (diff)
downloaddotfiles-db402d2d24d28bd892cd60de95aa78e3ce8271db.tar.gz
dotfiles-db402d2d24d28bd892cd60de95aa78e3ce8271db.zip
Only set 'background' if not already set right
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 783323ff..f5d16880 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -245,7 +245,9 @@ try
colorscheme sahara
set cursorline
catch
- set background=dark
+ if &background != 'dark'
+ set background=dark
+ endif
endtry
" Remap normal space to scroll down a page