aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
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/vimrc
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/vimrc')
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 043dea8b..c72857ce 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -26,8 +26,8 @@ if v:version >= 701
" The 'sahara' colorscheme only works for dark backgrounds with 256 colors
if has('syntax')
- \ && &background == 'dark'
- \ && (has('gui_running') || &t_Co == 256)
+ \ && &background ==# 'dark'
+ \ && (has('gui_running') || &t_Co ==# 256)
silent! colorscheme sahara
endif
endif