5

Is it possible to set up cmd with h, j, k, l as in Vim (but using with cmd) as arrow keys for cursor movement?

fegax
  • 181
  • unfortunately current time of writing there is no way to do it other than third party plugins. I don't know any plugin which can provide this function. – Rishon_JR Jul 19 '22 at 06:25
  • 2
    Karabinier can do this. The installable options include several mappings to do this. – mmmmmm Jul 19 '22 at 11:13

1 Answers1

7

With Karabiner-Elements, you can import a complex_modifications rule named Left ctrl + hjkl to Arrow Keys Vim, it enables that:

Left ctrl + hjkl to arrow keys Vim

Cmd-h/j/k/l may not be a good idea, because almost all of the Cmd-* are used by the system and apps, e.g. Cmd-H is a system shortcut to hide the current app, Ctrl would be better. However, if you don't need the system/app shortcuts, you can custom the rule like this.

Míng
  • 327