5

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?

Ivar
  • 6,138
  • 12
  • 49
  • 61
istudy0
  • 1,313
  • 5
  • 14
  • 22
  • 1
    You should not have `<` and `>` directly inside a text of an answer, either escape them as `<` and `>`, or put inside a backticks. And don't forget to use a preview. – ZyX Dec 25 '10 at 16:24

3 Answers3

5

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.

Mohamed Mansour
  • 39,445
  • 10
  • 116
  • 90
  • 2
    This is why I stick to FF + {vimperator,pentadactyl} – richo Dec 29 '10 at 03:56
  • Chrome is young and fresh! The main focus for chrome (my opinion) is Speed, Security, Stability. Extensions has been released this year, and more APIs are being exposed. – Mohamed Mansour Dec 29 '10 at 03:58
1

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!

zy Qi
  • 11
  • 1
0

First unmap the previous shortcut,

unmap <C-u>
map <C-u> scrollPageDown