On Jun 16, 8:43 am, Tim Chase <[email protected]> wrote:
> The only catch is that this is a one-time mapping, so if you do
> something like
>
>    :let fromKey='a'
>    :let toKey='b'
>    :exec "map ".fromKey." ".toKey
>    :let toKey='c'
>
> it won't change the mapping of "a->b" to "a->c".  You'd have to
> rerun the :exec command.
>

Hmm...I don't think it's all that useful...but you COULD change the
toKey dynamically (not the fromKey though).

:let toKey='b'
:map <expr> a toKey
:let toKey='c'

results in a mapping of a to c.

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

Reply via email to