Am 26.01.2012 19:08, schrieb Marc Weber:
Excerpts from sc's message of Thu Jan 26 18:33:55 +0100 2012:
wait -- let me stop you right there -- you are contradicting my
understanding and my experience -- if i do not set mapleader,
and install a plugin that defines a<leader>  mapping, i can
invoke it using the default '\' mapleader

But you still can't change the {lhs} side. eg you can't turn a
<leader>abc into a<m-a>, can you?

This is even another issue, I thought you were talking about a more
flexible mapleader?

I agree, you can duplicate the mapping and copy paste the rhs as well.
But then when there are plugin updates it may break.

Other solutions?

Plugins already use

    if !hasmapto("<Plug>DoSomething")
        map <Leader>abc <Plug>DoSomething
    endif

   set mapleader=X
   runtime !plugin/the-plugin.vim

doesn't work well with "lazy loading" (= as needed)

Marc Weber

Lost track here, g:mapleader is supposed to be const, why does load time
matter?

--
Andy

--
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui