Friday, January 8, 2016

Re: localleader E225

Hi Steve!

On Fr, 08 Jan 2016, Steve wrote:

> Le 08-01-2016, à 11:09:32 +0100, Christian Brabandt a écrit :
>
> >>
> >>So the problem is linked to the AlignMapsPlugin.
> >>
> >>I would like to keep this plugin and also be able to use the po.vim
> >>filetype. How can I managed that?
> >
> >Quick and dirty, change the po.vim file and remove the <unique> flag
> >from the map there. (Check the error message for the location of the map
> >in the ftplugin/po.vim file).
>
> Ok thanks for the suggestion. After some thinking, I will delete the
> AlignMapsPlugin which I used very rarely compared to editing po files.
>
> But just for curiosity, what would happen if I remove the <unique>
> flag?

Basically, Vim won't complain and accept the flag, that there are
overlapping maps. That means, when pressing ,t Vim would wait 'timeout'
seconds for you to press a second key, so it would know, whether you
wanted to enter the map ,t or the map ,tt

Also newer Vims accept the <nowait> argument, which you could use, which
would mean, that in a .po file, the ,tt mapping wouldn't be available
anymore for you.

> Would the plugin work just as expected or would there be side
> effects? Also, in the plugin, it's <Localleader> that is used. Could I
> change that to <Leader> (both have the same key, i.e ',')?

I don't know.

> >You should also mention this to the author of the ftplugin file, also
> >that particular plugin hasn't seen any updates in 10 years, so it might
> >be unmaintained.
>
> Depending on your answers, I might change the code of the plugin and
> propose it to the maintainer.

I think the plugin should check for its mappings, before using them to
make sure, that <unique> does not error out unnecessarily.
>
> Thanks Christian for your help, It also helped me understand how to
> debug this issue.

Your welcome.

Best,
Christian
--
Mit der Macht kann man nicht flirten, man muß sie heiraten.
-- André Malraux

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: