Hi,
On Mon, Feb 19, 2024 at 12:11 PM Salman Halim <salmanhalim@gmail.com> wrote:
>
> Hello,
>
> I'm using 64-bit GVim 9.1 patches 1-95 on Windows 10.
>
> Is it possible to have matchbufline() observe 'ignorecase' and 'smartcase'? Currently, if I have 'ignorecase' and 'smartcase' set, it behaves as if only 'ignorecase' were on and gives me results that regular search, for example, don't:
>
The matchbufline() function currently only supports the 'ignorecase'
option setting and
ignores the 'smartcase' setting.
Regards,
Yegappan
>
> Search for 'Unknown' where the file contains:
>
> unknown
> Unknown
> UNKNOWN
>
> Searching via n/N only finds the middle one (smartcase forces case matching) while matchbufline() matches all three.
>
> I COULD, of course, stick a \c or \C in front of my pattern based on whether the pattern contains an upper-case character, but I'd rather find out whether there is a plan to make matchbufline() observer smartcase before I put in the workaround.
>
> Thank you,
>
> --
>
> Salman
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAAW7x7mRsZ%2BMsFyhYxfRe6O1SGsrFfBgR84F9Xc%3D%2BpsKLV8FsA%40mail.gmail.com.
No comments:
Post a Comment