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?
-
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_JRCommented Jul 19, 2022 at 6:25
-
2Karabinier can do this. The installable options include several mappings to do this.– mmmmmmCommented Jul 19, 2022 at 11:13
Add a comment
|
1 Answer
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.