On 19/06/09 20:25, qff wrote:
>
> Not long ago I asked whether it was possible to map keys according to
> variables.
> I'm using that to map some keys, but it seems "lmap" doesn't work when
> playing a recording (macro)
> e.g.
> - I press "qa" to start recording
> - Then I press "i" to insert some text
> - Then I press "s" on the keyboard which is mapped to "o" and "o" is
> inserted - which is what I want.
> - I press "ESC" to quit inserting
> - and "q" to stop recording
>
> Now when I play the recording ("@a") - "s" is inserted not "o".
>
> How do I change/fix this?
>
> I'm willing to use another form of mapping, but to me it seems that
> other mappings would require me to map command-mapping (normal-mode
> mappings) from the new map back to the default as they would be
> overridden by mappings that work with recordings. (Or maybe I'm just
> missing some simple setting or the like which I hope)
>
> qff
Maybe you should check your a register, and manually change s to o
within it (e.g. by put-edit-yank)? (Though for Latin s vs. Latin o I
don't see the interest, unless maybe your keyboard is broken and doesn't
produce anything when you hit the O key. Now if it were Latin s vs.
Greek σ (sigma), or versus Cyrillic с (ess), then...).
Or, maybe the 'paste' option is not set the way you want it?
Best regards,
Tony.
--
Documentation is the castor oil of programming. Managers know it must
be good because the programmers hate it so much.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---