enter utf-8 symbols

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

enter utf-8 symbols

Oleg Puchinin
Hello !
Is it possible to enter characters UTF-8 on the code? For example some
command? Say - entered the command with the correct hex code and got
the correct character?

Best regards,
Oleg.

--
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: enter utf-8 symbols

mattn
Do you mean that you want to input utf-8 text without IME(Input Method Editor)?


--
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: enter utf-8 symbols

Tony Mechelynck
In reply to this post by Oleg Puchinin
On 12/06/11 15:13, Oleg Puchinin wrote:
> Hello !
> Is it possible to enter characters UTF-8 on the code? For example some
> command? Say - entered the command with the correct hex code and got
> the correct character?
>
> Best regards,
> Oleg.
>

        :help i_CTRL-V_digit (and even though it starts with i_ it also applies
to Command-line mode).

See also http://vim.wikia.com/wiki/Entering_special_characters


HTH,
Tony.
--
This is for all ill-treated fellows
        Unborn and unbegot,
For them to read when they're in trouble
        And I am not.
                -- A. E. Housman

--
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: enter utf-8 symbols

Nikolay Aleksandrovich Pavlov
In reply to this post by Oleg Puchinin
Ответ на сообщение «enter utf-8 symbols»,
присланное в 17:13:12 12 июня 2011, Воскресенье.
Отправитель: Oleg Puchinin:

> Is it possible to enter characters UTF-8 on the code? For example some
> command? Say - entered the command with the correct hex code and got
> the correct character?
Yes. Some methods (X means «hex character»):
    <C-v>xXX
    <C-v>uXXXX
    <C-v>UXXXXXXXX
    <C-r>="\uXXXX"<CR>
    <C-r>=nr2char(0xX...)<CR>
(All meant to be run from insert or command mode. In second case input will go
to the command line.)

Текст сообщения:
> Hello !
> Is it possible to enter characters UTF-8 on the code? For example some
> command? Say - entered the command with the correct hex code and got
> the correct character?
>
> Best regards,
> Oleg.

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: enter utf-8 symbols

Oleg Puchinin
Thank you, very much !!!

2011/6/13 ZyX <[hidden email]>:

> Ответ на сообщение <<enter utf-8 symbols>>,
> присланное в 17:13:12 12 июня 2011, Воскресенье.
> Отправитель: Oleg Puchinin:
>
>> Is it possible to enter characters UTF-8 on the code? For example some
>> command? Say - entered the command with the correct hex code and got
>> the correct character?
> Yes. Some methods (X means <<hex character>>):
>    <C-v>xXX
>    <C-v>uXXXX
>    <C-v>UXXXXXXXX
>    <C-r>="\uXXXX"<CR>
>    <C-r>=nr2char(0xX...)<CR>
> (All meant to be run from insert or command mode. In second case input will go
> to the command line.)
>
> Текст сообщения:
>> Hello !
>> Is it possible to enter characters UTF-8 on the code? For example some
>> command? Say - entered the command with the correct hex code and got
>> the correct character?
>>
>> Best regards,
>> Oleg.
>

--
You received this message from the "vim_multibyte" maillist.
For more information, visit http://www.vim.org/maillist.php