Vimium - how to map vimium shortcut keys over chrome default shortcut keys? [closed]
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this questionI installed Vimium for my Chrome browser to use but I noticed that Chrome shortcut keys take higher priority.
For instance, if I try <C-u>
, instead of scrolling a page up, I see the source code of the page.
How can I configure Chrome or Vimium to use Vimium shortcuts rather than built-in Chrome shortcuts?
You currently cannot map any default Chrome shortcut keys defined already. That is unfortunately one limitation of Google Chrome Extensions API. The Extension team is familiar with such restrictions, and they have it on their queue for future APIs.
In the meantime, try to pick a shortcut that doesn't conflict.
Hope that kinda helped.
Actually David's answer should work somehow. Some may misunderstood, these commands are added in Vimium's Options Settings.
By the way, if you want to add and as scrolling full page up and down, just add the following in the "Custom Key Mapping":
unmap <c-f>
map <c-f> scrollFullPageDown
unmap <c-b>
map <c-b> scrollFullPageUp
This works for me. Enjoy!
First unmap the previous shortcut,
unmap <C-u>
map <C-u> scrollPageDown
精彩评论