19

For someone who uses the Ctrl-W bindings in vim habitually, it is incredibly annoying to have Chrome OS ask me, "Wanna close this window, then?"

How do I remap keys in Chrome OS? Can't find this top secret setting anywhere.

JD.
  • 3,005
  • 2
  • 26
  • 37
  • You could have a chrome extension that will enable you to bind keys. Something similar to this: https://chrome.google.com/webstore/detail/bookmarks-bar-keyboard-sh/omgmmhpgegfcifjmhpenmjpignkegpal?hl=en ext. – Ido Green Mar 14 '13 at 13:58
  • If it’s not primarily about the “annoyance” of accidentally pushing it out of habit, but you actually want to use the functions mapped to Ctrl-W, you could consider remapping it in vim using some key that’s not used by Chrome OS like here: https://superuser.com/questions/540305/vim-how-do-you-remap-the-functionality-of-ctrl-w-to-a-different-key – Yushin Washio Jun 06 '19 at 18:22

3 Answers3

16

Google just published these extensions which allow you to remap most of the keys, with some caveats.

Also, Chrome OS now* supports remapping the Ctrl, Alt, and Search keys to [Search/Ctrl/Alt/disabled/Esc] without any extensions. See here: chrome://settings/keyboard-overlay#keyboard

*at least as of 33.0.1750.58 (Official Build 247552) beta

Alex Shroyer
  • 3,499
  • 2
  • 28
  • 54
2

It is not currently possible.

Discussion thread: https://groups.google.com/a/chromium.org/d/msg/chromium-discuss/pfAQrN0-t6c/ADp_Io32DNAJ

JD.
  • 3,005
  • 2
  • 26
  • 37
1

Check out Vimium for vi like mappings in Chrome and the ability to remap them. Your limited to the vim/chrome commands it supports though.

So also check out keyboard-fu which allows you to map keys to any Javascript snippet you want.

studgeek
  • 14,272
  • 6
  • 84
  • 96