How to unblock some key bindings for a specific site in vimperator

I am using vimperator for firefox and it works well on most websites. However, there is a key conflict for the webogramEnter when focusing on the message box. When I click Enterit seems that vimperator is intercepting the event and adding a newline character, while initially it should be a trigger to send the injected message.

I tried to temporarily disable vimperator with a key Insert, then everything works fine. However, I want other features like vimperator hints to turn on fine. So the best way to resolve the conflict seems to be to disable the key binding Enterfor this website.

I expect something like:

scoped_iunmap web.telegram.org <CR>

      

Is there a way to achieve this effect? Thank.

+3


source to share


2 answers


I found a workaround for this requirement.

ignorekeys add web\\.telegram\\.org -except o,t,T,O,<C-l>,f,F,:

      



Frequently used bindings are saved, add to the list -except

as you wish.

It's not very elegant and I'm still looking for a better solution :)

+1


source


I would recommend loading some vimperator modules for keys . It looks like the perfect mix of what you want. Unfortunately, the docs for it might be a little out of date. Here's how I use it at github.com, duckduckgo.com and feedly.com:

command! -nargs=+ lazy autocmd VimperatorEnter .* <args>
lazy fmaps -u='github\.com/[^/]+/.+' -events=vkeydown s,t gc gi gp gw
lazy fmaps -u='duckduckgo\.com/\?q=' -events=vkeydown l j k <enter> s,d gm,m gt,t
lazy fmaps -u='feedly\.com' j k v A m s

      



Basic setup:

  • Install the file feedSomeKeys_3.js

    to ~/.vimperator/plugin

    .
  • Install the file _libly.js

    to ~/.vimperator/plugin

    .
  • Add your fmaps to your ~ / .vimperatorrc file.
  • Restart your browser.
  • Dance! (Technically, this is optional.)
0


source







All Articles