1

Re: leader

is it not possible to set a mapleader in the viemurc file (or at all)?

i'm used to having "," be my mapleader in my vimrc,

i tried directly mapping ",." to something from the command line, and it says that

"Multiple Key-Chord Mappings not allowed"

Thanks

2

Re: leader

Hello,

Indeed, multiple key-chord mappings (aka ambiguous-prefix mappings) are not allowed. They are planned for a future version. I'm not entirely sure whether this is what you mean by "map-leader", let me know if I misunderstood it.

Haven't been able to look at the other issues yet, I'll do so over the weekend.

Regards,

  Jon

3

Re: leader

Hi Jon,

this is from the gvim :help mapleader

"                    *<Leader>* *mapleader*
To define a mapping which uses the "mapleader" variable, the special string
"<Leader>" can be used.  It is replaced with the string value of "mapleader".
If "mapleader" is not set or empty, a backslash is used instead.  Example: >
    :map <Leader>A  oanother line<Esc>
Works like: >
    :map \A  oanother line<Esc>
But after: >
    :let mapleader = ","
It works like: >
    :map ,A  oanother line<Esc>

Note that the value of "mapleader" is used at the moment the mapping is
defined.  Changing "mapleader" after that has no effect for already defined
mappings."

what this allows me to do is set maps that say things like
map <leader>. :noh<Enter>

so that ",." will invoke :noh

but it sounds like that probably wouldn't work until multiple key chord mappings were supported smile

4

Re: leader

Thanks for the detailed explanation! Indeed, it won't work until there is support for multiple key chord mappings.

Regards,

  Jon

5

Re: leader

Hi

I just found this post from about a year ago and was wondering whether we are any closer to having multiple key chord mappings?

I  always use the following mapping:

imap ;; <Esc>


So rather than having to hit ESC to break from insert mode to command mode I can just tap ;; which is on the home row and less of a stretch.


Thanks !

6

Re: leader

Hello,

Indeed, multiple-key chord mappings are planned for ViEmu 3.0 later this year (already in active development, but still a few months away from completion). This oft-requested feature, together with others, will finally make it into ViEmu!

Regards,

  - Jon