> what you're doing is, instead of creating <voleader> to be used in a
> map command, at mapping time you're running a different syntax. Is
> that correct?
Somewhat, yes. He was constructing the :map command using string
manipulation.
> If it is, it's not going to work in our application because there are
> tons of map commands that need to be changed. It's one thing to
> globally change <localleader> to <voleader>, but it's a little more
> troublesome (and requires considerable testing) to put in the execute
> and the g: and the dot.
You could try making a custom command, e.g. :MyMap, then change all the
:map to :MyMap and have :MyMap call a function which changes
<localleader> to <voleader> before executing it.
My main question though, is, why do you want to do this? Maybe if you
explain your motivation more, there is a more standard 'Vim way' to do
what you are wanting, or some other advice the list could give.
Cheers,
Ben.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment