aboutsummaryrefslogtreecommitdiff
path: root/vim/config/syntax.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-30 17:21:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-30 17:23:51 +1300
commitdc5d23f3b64d82ac692151d6141023baf4cd3397 (patch)
tree18f81692ba07d262440353c96676f6a337f5d177 /vim/config/syntax.vim
parentUpdate submodules (diff)
downloaddotfiles-dc5d23f3b64d82ac692151d6141023baf4cd3397.tar.gz
dotfiles-dc5d23f3b64d82ac692151d6141023baf4cd3397.zip
Use ==# consistently in Vim config
I got a set of warnings from vim-vint about using just "==" for these comparisons: >Use robust operators `==#` or `==?` instead of `==` (see Google >VimScript Style Guide (Matching)) It does seem a lot more sensible to be explicit about case sensitivity, and not to lean on the configured 'ignorecase' value, especially if the user changes it.
Diffstat (limited to 'vim/config/syntax.vim')
-rw-r--r--vim/config/syntax.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/config/syntax.vim b/vim/config/syntax.vim
index df75b3f0..08b908c8 100644
--- a/vim/config/syntax.vim
+++ b/vim/config/syntax.vim
@@ -19,7 +19,7 @@ if has('syntax')
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