Loading ...
Sorry, an error occurred while loading the content.

Re: enter utf-8 symbols

Expand Messages
  • Tony Mechelynck
    ... 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,
    Message 1 of 5 , Jun 12, 2011
    • 0 Attachment
      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
    • ZyX
      Ответ на сообщение «enter utf-8 symbols», присланное в 17:13:12 12 июня 2011, Воскресенье. ... Yes. Some methods (X
      Message 2 of 5 , Jun 12, 2011
      • 0 Attachment
        Ответ на сообщение «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.
      • Oleg Puchinin
        Thank you, very much !!! ... -- You received this message from the vim_multibyte maillist. For more information, visit http://www.vim.org/maillist.php
        Message 3 of 5 , Jun 13, 2011
        • 0 Attachment
          Thank you, very much !!!

          2011/6/13 ZyX <zyx.vim@...>:
          > Ответ на сообщение <<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
        Your message has been successfully submitted and would be delivered to recipients shortly.