diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-29 23:50:23 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-29 23:55:15 +1300 |
commit | ac847c00fe46e82e65008b6d23e1f8d89e755232 (patch) | |
tree | adb4c9f0d24bb12488760c51a85faf9c2176d998 /TABS.md | |
parent | Update submodules (diff) | |
download | dotfiles-ac847c00fe46e82e65008b6d23e1f8d89e755232.tar.gz dotfiles-ac847c00fe46e82e65008b6d23e1f8d89e755232.zip |
Require minimum Vim version for background detect
On an ancient Vim (6.1), the block of code checking the value of
COLORFGBG does not work at all, raising the following error output:
Error detected while processing function DetectBackground:
line 3:
E117: Unknown function: split
E15: Invalid expression: split($COLORFGBG, ';')
line 6:
E121: Undefined variable: l:colorfgbg
E15: Invalid expression: len(l:colorfgbg) ? l:colorfgbg[-1] : ''
line 9:
E121: Undefined variable: l:bg
E15: Invalid expression: l:bg == 'default' || l:bg == '7' || l:bg == '15'
line 11:
:else without :if: else
line 13:
:endif without :if: endif
I'm unlikely to need such an ancient Vim very often, so I've simply
added an error guard around the block.
Diffstat (limited to 'TABS.md')
0 files changed, 0 insertions, 0 deletions