Hi all,

I am having troubles with entering non-printable Unicode characters. I
am currently using (g)Vim 7.4.889 on Linux Ubuntu 12.04 (3.13.0.65
kernel), compiled with GCC 5.2.0.

Vim help states:

    If everything else fails, you can type any character as four hex bytes:

        CTRL-V u 1234

    "1234" is interpreted as a hex number.  You must type four
    characters, prepend
    a zero if necessary.


It works all right for common ASCII characters, however for characters
above 127 it creates unexpected results:

"""
Got from "Convert to HEX"
3a    :
25    %
73    s
2d    -
c2a0  Unicode non-breakable space
c2ad  Unicode soft-hyphen

Test results:
s   - put in with Ctrl-V u 0073 - OK
슠  - put in with Ctrl-V u c2a0 (its real code is ec8aa0) - ERROR
슭  - put in with Ctrl-V u c2ad (its real code is ec8aad) - ERROR
"""

As you can see the last two hex numbers put in are interpreted correctly
(i.e. a0 is a0, ad is ad), however the first two ones are changed: c2
becomes ec8a.

So I wonder whether I am doing it wrong or whether I should write a bug
report. Any help or advice appreciated.

Thx
Marcel Svitalský

-- 
Marcel Svitalský/ /

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to