Simple test case:

Launch Vim:
vim -N -u NONE

Set options in question:
:set ignorecase smartcase

Insert text with capitalized letters:
Some Text

Create a visua area (and leave it):
VV

Search using \%V to limit to visual area only:
/\%VSome Text

Search matches, as expected.

Search again, without capital letters:
/\%Vsome text

No matches!

It looks like smart case take effect when there are ANY capital
letters in a pattern, even when those capital letters are part of a
special search item.

I think that smartcase should only take effect when there are capital
letters that are NOT part of a special search item.

If this is not possible, it should be noted in the help text.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui