Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vimium - how to map vimium shortcut keys over chrome default shortcut keys? [closed]

I 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?

like image 392
istudy0 Avatar asked Dec 25 '10 14:12

istudy0


2 Answers

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.

like image 112
Mohamed Mansour Avatar answered Sep 20 '22 06:09

Mohamed Mansour


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!

like image 24
zy Qi Avatar answered Sep 20 '22 06:09

zy Qi