This (not catching Ёё with [А-Яа-я]) is expected when $LC_COLLATE is a locale with no knowledge of Cyrillic alphabetization, for instance C:
Ё U+0401 CYRILLIC CAPITAL LETTER IO А U+0410 CYRILLIC CAPITAL LETTER A Я U+042F CYRILLIC CAPITAL LETTER YA а U+0430 CYRILLIC SMALL LETTER A я U+044F CYRILLIC SMALL LETTER YA ё U+0451 CYRILLIC SMALL LETTER IO As you can see, Cyrillic Ё and ё are outside the range [А-Яа-я]. This is why, under ":help /[], the pattern [А-яЁё] is mentioned to catch all (Russian) Cyrillic letters. OTOH, with $LC_COLLATE set to some Cyrillic locale (and assuming Vim takes it into consideration, about which I'm not sure), Ё and ё sort together with Е and е, between Дд and Жж, so they would be included. Best regards, Tony. On Tue, Nov 14, 2017 at 2:15 PM, sergeevabc <vim-dev-git...@256bit.org> wrote: > @10110111, stumbled upon your comment accidentally and decided to test on my > end. > > $ set LC_ALL=ru_RU.utf8 > > $ grep --version > grep (GNU grep) 3.0 > > $ echo Ёжик под зелёной ёлкой. | grep --color "[а-яА-Я ]" > Ёжик под зелёной ёлкой. > ^ ^ ^ ^ > > Ё, ё and . are not painted red. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > > -- > -- > You received this message from the "vim_dev" 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_dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_dev+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.