Dettorer wrote:
> However, it raised a few questions related to langmap itself:
>
> 1) If I want to, for exemple, remap ';' to ':', with this langmap I have
> to do 'noremap ; N' ('N' being then mapped to ':' by the langmap), is it
> the expected behaviour?
I don't think so, and the new setting looks like it should prevent just that.
E.g. with:
set showcmd
set langmap=:>,ö:
set langnoremap
map , :
Pressing "," should open the cmdline window, but sends ">".
Is this what you mean?
> 2) In a sequence, some keys are not mapped by langmap. For exemple the
> motion 'f(' (find next '('): the '(' is the bépo's key for '(', it is
> not mapped. I don't know if this is expected, but I like that
> behaviour.
Yes, "f" should always look for what is coming next unmapped.
In my above example, "f:" goes to ":", not ">".
> However, in something like 'ci(' (change whithin
> parenthesis), the '(' is mapped by langmap (so in bépo I type '9'). This
> seems a bit inconsistent.
Confirmed and agreed.
There is another issue when ">" is the target of a langmap (e.g. ":>"):
Pressing ":" shows ":" in the "showcmd" place, until some timeout, where it
changes to ">". "set notimeout" makes it stay at ":".
Shouldn't it be ">" from the beginning?
This appears to be specific to the ">" target mapping. It does not happen with
langmap=a<.
> Anyway, thanks a lot for this patch!
Yes, thanks a lot, Christian!
It makes the langmap feature much more useful.
Hopefully the issues above can be fixed, too.
Thanks,
Daniel.
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.