Hi, 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 ;) Regards, René -- -- 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.
feedkeysremap_option_lmap_dep.patch
Description: Binary data
feedkeysremap_option.patch
Description: Binary data
