qff schrieb:
> 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
To play the macro, you could try using
:call feedkeys(@a, "t")
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---