On Aug 26, 6:47 am, "Xiaoyu ZHANG" <[EMAIL PROTECTED]> 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? > > Regards, > Xiaoyu
You should read through the table just under :help expr-== There you will see that == uses the value of 'ignorecase', ==# is case- sensitive, and ==? ignores case. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
