Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Map to existing Chrome shortcuts

See original GitHub issue

Not sure what I’m doing wrong but I just can’t get any custom key mappings in cVim to override existing built-in mappings in Chrome. For example

map <C-f> scrollPageDown
map <C-b> scrollPageUp
map <C-o> goBack
map <C-i> goForward

Doesn’t get me the expected vim (and vimperator) bindings for scrolling one page up or down or moving around in history. CTRL-f brings up the Chrome Find popup, CTRL-o the Chrome Open window. CTRL-b doesn’t result in anything at all.

Other mappings for non-CTRL bindings works like a charm. What am I missing?

Chrome version 51.0.2704.106 (Official Build) (64-bit) on Linux.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

rosshaddencommented, Nov 10, 2016

Found it:

This is definitely my issue. If true for @phlundblom, we can close.

rosshaddencommented, Nov 11, 2016

By the way, @phlundblom, I ended up mapping things to the key that would be qwerty:

map <C-d> scrollDown
map <C-t> scrollUp
map <C-h> scrollPageDown
map <C-f> scrollPageUp
map <C-y> scrollFullPageDown
map <C-n> scrollFullPageUp

instead of e, y, d, u, f, and b, respectively. It works well until they fix it in chromium.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome keyboard shortcuts - Computer - Google Chrome Help
Mac ; Open the History page in a new tab, ⌘ + y ; Open the Downloads page in a new tab, ⌘...
Read more >
Map keyboard shortcuts in Google chrome - Super User
Is it possible to remap certain keyboard shortcuts (most notably: 'ctrl-f' to '/' in order to invoke the search) in chrome? If so,...
Read more >
Remapping keyboard shortcuts in Chrome and Firefox
Go to Settings->Keyboard->Shortcuts, and then from the list on the left select "App Shortcuts". Click "+" to add a new app shortcut and...
Read more >
Keyboard shortcuts - Chrome Developers
# Global keyboard shortcuts ; Toggle the Drawer, Escape, Escape ; Normal reload, Command + R · F5 or Control + R ;...
Read more >
Love Chrome shortcuts? Wait 'til you see this - Computerworld
Now, it's worth noting that lots of the commands involved are actually linked to existing Chrome shortcuts — ones you could pull up...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found