René Köcher wrote:
> the attached patch adds support for a new option called
> 'feedkeysremap' or 'fkrm'. By default this option is always enabled
> resulting in feedkeys() behaving just as it did before the patch (keys
> will be remapped unless the optional mode parameter is set to 'n').
> Disabling the option (set nofeedkeysremap / nofkrm) will toggle this
> behavior and feedkeys() will default to *not* remap the keys (same
> behavior as with mode=='n').
>
> Background:
>
> I'm a user of the langmap feature (+langmap) which helps me to keep
> the keyboard navigation working while still being able to use my
> preferred keyboard layout [dvorak-de-t2]. However the downside is
> that most plugins don't care about langmap and thus may break in
> unexpected ways when using feedkeys().
>
> Now it would be possible to file bugs for a gazillion of plugins to
> set the optional mode parameter in calls to feedkeys() however I find
> it more reasonable to offer a global way to settle default remapping
> mode to active / inactive. In my test it worked pretty well with 'set
> nofkrm' so I thought I'd share it.
>
> There are two versions of the patch - one which depends on langmap
> being available and otherwise sets 'fkrm' to a no-op, the second one
> working without langmap.
>
> Be kind, this is my first public vim patch ;)
Well, I'm afraid this is the wrong solution. We do not want to add
global options that change how functions work. In your specific example
it may fix a problem, but in general it causes problems. That's because
script writers most likely will not handle the option being not at the
default value.
So, you indeed need to tell script writers to fix their script.
I know that's a pain, but it's the right solution.
--
BEDEVERE: Oooooh!
LAUNCELOT: No "Aaaaarrrrrrggghhh ... " at the back of the throat.
BEDEVERE: No! "Oooooh!" in surprise and alarm!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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/groups/opt_out.