If you really care about case, you can use \c and \C to specify case
inside the pattern.


On 5/5/06, NEANG Vissale <[EMAIL PROTECTED]> wrote:

It seems that the substitute() function depends on the user ignorecase setting
but there is no indication about this in the help. The help says also the
substitute function overrides 'magic' and 'cpoptions' to make scripts portable.
But if the function depends on the ignorecase option, scripts using substitute()
are not portable isn't it?

eg:
:set ignorecase
:echo substitute("Blah blah", "blah", "", "g")
=> ""

:set noignorecase
:echo substitute("Blah blah", "blah", "", "g")
=> "Blah"

Thanks

Vissale




Reply via email to