开发者

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

开发者 https://www.devze.com 2023-02-01 18:05 出处:网络
Closed. This question doe开发者_C百科s not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question doe开发者_C百科s not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

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?


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
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号