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/config/format.vim | |
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/config/format.vim')
-rw-r--r-- | vim/config/format.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/config/format.vim b/vim/config/format.vim index cbc995af..fadbd8f7 100644 --- a/vim/config/format.vim +++ b/vim/config/format.vim @@ -1,6 +1,6 @@ " If we can, add j to the format options to get rid of comment leaders when " joining lines -if v:version > 703 || v:version == 703 && has('patch541') +if v:version > 703 || v:version ==# 703 && has('patch541') set formatoptions+=j endif |