diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 09:51:09 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-06 09:51:09 +1300 |
commit | 9927b230dd5ae7004f4d14ea9f684d06cd11a856 (patch) | |
tree | 89411d24bbfbd4058cb78b9e24cc177530659ced /vim/vimrc | |
parent | Don't overwrite plugin-specified user commands (diff) | |
download | dotfiles-9927b230dd5ae7004f4d14ea9f684d06cd11a856.tar.gz dotfiles-9927b230dd5ae7004f4d14ea9f684d06cd11a856.zip |
Don't use VimL ==# for number comparisons
The Google VimScript Guide says:
<https://google.github.io/styleguide/vimscriptfull.xml#Portability>
> Always use case-explicit operators for strings (=~# and =~?, never =~).
>
> This also applies to !~ == != > >= < and <=
> This only applies for strings. == and >= are fine for numbers, but ==#
> and >=# must be used for strings.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -16,7 +16,7 @@ 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) + \ && (has('gui_running') || &t_Co == 256) silent! colorscheme sahara endif endif |