On 7/5/06, Jürgen Krämer <[EMAIL PROTECTED]> wrote:
with 'encoding' set to "utf-8" there is a quite confusing (to me) difference between the column number and my expectations (supported by the virtual column number) if there are non-ASCII characters on the line.
And additional remark. As James noted, \%c is not character offset (in case of multibyte chars), but the bytes offset. In case you want to match not by visual columns (\%v) and not by byte offset, but by character index in the line, you can do this: /^.\{22}xyz This matches xyz at 23nd char position, correctly counting each multibyte chars and each single char for 1 position. Does this possibly solve your matching problem ? Yakov