On Tue, Aug 26, 2008 at 7:47 AM, Xiaoyu ZHANG wrote:
>
> Here is a simple script
>
> ================================
> $ cat x.vim
> if 'a' == 'A'
> echoe "equal."
> endif
> ================================
>
> When i try source it (v7.2), i got this
> ================================
> :so x.vim
> Error detected while processing x.vim:
> line    2:
> equal.
> Press ENTER or type command to continue
> ================================
>
> So comparison of string variable is not caps-sensitive? Is this okay?

A simpler test case:
~> vim -u NONE -N --cmd "echo 'a' == 'A'" --cmd q
0
~> vim -u NONE -N --cmd "set ignorecase" --cmd "echo 'a' == 'A'" --cmd q
1

This behavior isn't really expected, I'll grant you, but it is
documented - see :help expr-==

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui