Vimium: [FF] Unable to use custom navigation key mappings in Visual mode

Created on 15 Dec 2017  Â·  4Comments  Â·  Source: philc/vimium

I shifted my navigation keys to one key right (j,k,l,ÅŸ instead of h,j,k,l) with this configuration:

unmap h
map j scrollLeft
map k scrollDown
map l scrollUp
map ÅŸ scrollRight

unmap H
map J goBack
map K previousTab
map L nextTab
map Åž goForward

However when I enter Visual mode by pressing 'v', navigation keys revert to their original bindings (h,j,k,l). Is this a bug or am I missing something obvious in my configuration?

Steps to reproduce:

  1. map scrollLeft, scrollDown, scrollUp and scrollRight commands to j, k, l and ÅŸ keys respectively like in the configuration above.(use whatever key you have next to 'l' instead of 'ÅŸ' in your keyboard)
  2. Enter Visual mode.
  3. Try using your newly mapped keys.

Browser: Firefox 57.0.1 64-bit
OS: Ubuntu 17.10 64-bit
Vimium version: Vimium 1.62

Most helpful comment

This might be due to the fact that pressing 'v' key does not let you choose where to start selecting.

I usually use / to select some text first. Then visual mode starts there.

All 4 comments

However when I enter Visual mode by pressing 'v'

Visual mode does not respect key mappings. j, k, etc. are hard wired.

(It's been a known issue for quite some time, but the level of demand to fix it is surprisingly low. Perhaps just nobody is using visual mode.)

Perhaps just nobody is using visual mode.

This might be due to the fact that pressing 'v' key does not let you choose where to start selecting. I used VimFX before Firefox Quantum and visual mode was really helpful there since it let user to choose where to start the selection using hint characters just like how it is with links.

This might be due to the fact that pressing 'v' key does not let you choose where to start selecting.

I usually use / to select some text first. Then visual mode starts there.

That is a really helpful tip, thank you.

Was this page helpful?
0 / 5 - 0 ratings