On 13/04/09 07:54, Maxim Kim wrote:
>
> Hi
> I have just found that I can not use russian text in a q-macro using
> russian keymap.
> In normal mode:
> qqaПривет, Мир!q
> Then @q and result is:
> Ghbdtn? Vbh!
>
> I tried it at vanilla vim 7.2 and vim 7.2 1-148.

What is in register q? (":reg q" without the quotes will tell you). If 
it's "aGhbdtn? Vbh!" (without the quotes) then the language-mapping 
wasn't applied to the recorded keystrokes, but only to what got written 
into the buffer. OTOH if it's "aПривет, Мир!" then I don't know what 
went wrong.

For this kind of repeated insert, do it once without recording, "yank" 
it into a register of your choice (let's say a) (see ":help v_a"), and 
"put" it from there (using either "ap in Normal mode or Ctrl-R a in 
Insert mode) when needed. I have several such "repeated inserts" in 
various registers, but I practically never use q-style recording.


Best regards,
Tony.
-- 
It is easier to be a "humanitarian" than to render your own country its
proper due; it is easier to be a "patriot" than to make your community
a better place to live in; it is easier to be a "civic leader" than to
treat your own family with loving understanding; for the smaller the
focus of attention, the harder the task.
                -- Sydney J. Harris

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

Reply via email to