aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-04 20:16:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-04 20:19:53 +1300
commit79d6eef63ff4984fa3f8631aec6da26fa19a6f34 (patch)
treefbdd211ef98f26a03553134c29d46b72043f6367 /vim/autoload
parentMerge branch 'release/v0.7.0' into develop (diff)
downloaddotfiles-79d6eef63ff4984fa3f8631aec6da26fa19a6f34.tar.gz
dotfiles-79d6eef63ff4984fa3f8631aec6da26fa19a6f34.zip
Adjust plugin code layout a lot
Including renaming big_file.vim and accompanying functions yet again, to big_file_options.vim. Trying to keep complex autocmd and mapping definitions on long lines broken up semantically; definition and options on one line, patterns or mapping key on the next, and the command to run on the last. Also trying to make sure that <silent>, <buffer>, and <unique> are applied in the correct places, and that all mapping commands are using the :<C-U> idiom for the command prefix.
Diffstat (limited to 'vim/autoload')
-rw-r--r--vim/autoload/detect_background.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/autoload/detect_background.vim b/vim/autoload/detect_background.vim
index 89e5d19e..5dd9218c 100644
--- a/vim/autoload/detect_background.vim
+++ b/vim/autoload/detect_background.vim
@@ -12,10 +12,14 @@ function! detect_background#DetectBackground()
let l:colorfgbg = split($COLORFGBG, ';')
" Get the background color value, or an empty string if none
- let l:bg = len(l:colorfgbg) ? l:colorfgbg[-1] : ''
+ let l:bg = len(l:colorfgbg)
+ \ ? l:colorfgbg[-1]
+ \ : ''
" Choose the background setting based on this value
- if l:bg ==# 'default' || l:bg ==# '7' || l:bg ==# '15'
+ if l:bg ==# 'default'
+ \ || l:bg ==# '7'
+ \ || l:bg ==# '15'
set background=light
else
set background=dark