diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 17:21:41 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-30 17:23:51 +1300 |
commit | dc5d23f3b64d82ac692151d6141023baf4cd3397 (patch) | |
tree | 18f81692ba07d262440353c96676f6a337f5d177 /vim/vimrc | |
parent | Update submodules (diff) | |
download | dotfiles-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/vimrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |