Gergely wrote:

> I try to google for solution without success so I'm here. :)
> 
> It seems vim regexpes absolutely ignore local collation settings,
> what is very unfortunate. OS linux, locale is hu_HU.utf8.
> For expl I would like to search for /[a-z]*/ and fail on "néz".
> 
> Am I miss some setting or this cannot be done?
> 
> While googling I found that range expression [a-z] is not well defined
> in different regexp implementations. I think thats ok, but vim
> should be *intuitive* and even if [a-z] not defined, vim should use the
> local collation. (It does not).
> 
> Ok, I thought, there are no wonders, lets try a "word character". 
> \w definitely should include all character in range a-z according to
> local collation (simple egrep does it well). Unfortunately
> in vim  /\w*/ also fails. :-(
> 
> Any hint/advice please, gruruz out there?
> 
> Gergely
> 
> ps.: set encoding is utf-8 presumably ok.

You can try using [[:alpha:]] or \i or \k.
See :help whitespace, note the remark just above that.

-- 
hundred-and-one symptoms of being an internet addict:
23. You can't call your mother...she doesn't have a modem.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
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

Reply via email to