On 08/11/10 05:27, Tony Mechelynck wrote:
On 07/11/10 08:13, Dominique Pellé wrote:
Instead, you have to do this:

:echo matchstr(s, ".", byteidx(s, 2))
č

or, as I said, this (which I just tried, and it works):
:echo matchstr(s, '.', 0, 3)
č

where 3 = 2 + 1 to reach the 3rd match (one-based, not zero-based).


-- Dominique


Best regards,
Tony.

What happened? There was an e-grave (0xE8) (and another one higher up), I typed another, set the charset to UTF-8, and it came back as c-caron instead (U+010D, or 0xC4 0x8D, instead of U+00E8, or 0xC3 0xA8)! Gmail acting up maybe?

Anyone else or just me?


Best regards,
Tony.
--
Speak softly and carry a +6 two-handed sword.

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