Skip to main content
3 of 3
added 195 characters in body
ivan
  • 2k
  • 11
  • 20

How can I bind a key-sequence ending in `C-h`?

Evil-mode binds C-wh to evil-window-left. I'd like to bind C-wC-h to the same so it will work whether or not I lift my finger off the Control key in time. But C-h is the help key. Is there any reasonable workaround for this?

I'm willing to lose the Help functions on C-h since I can access them elsewhere, like F1.

Update: I may have found the solution.

(define-key evil-normal-state-map "\C-w\C-h" 'evil-window-left)

This seems to work without affecting C-h behavior in other cases.

ivan
  • 2k
  • 11
  • 20