4 ms·
Not a vim user but iTerm2 settings have a section for rebinding modifier keys, (plus you also have karabiner-elements)
by Myrmornis 7y ago
Not a vim user but iTerm2 settings have a section for rebinding modifier keys, (plus you also have karabiner-elements)
- AlchemistCamp 7y agoI don't have karabiner-elements, but doesn't it basically just remap keys across your whole system (much like my mechanical keyboard can)? I don't want change my cmd-keys into control keys system wide. I just want to be able to map my cmd-keys in vim (which to be honest is the lion's share of what I use any terminal for).
- Hnrobert42 7y agoKarabiner-elements is good for mapping single keys to other keys. It doesn’t handle key combinations. (There is something called complex modifiers, but I can’t figure out how to edit them.) BetterTouchTool is good for mapping key sequences. Further, it can do it selectively based on what application is active.
- weaksauce 7y agoThe complex modifiers are just a json file that’s fairly easy to edit. I have a file that has caps+hjkl to arrow keys. Caps by itself is Esc. caps with anything else is Cmd-shift-option-control+anything else. And finally right shift plus caps toggles caps lock.
- Hnrobert42 7y agoWow. That’s good know. I will poke around. Thank you. I like KE and have contributed to the dev several times. In typical modest Japanese fashion, contributions are limited to $10 max. Mapping ‘Enter’ to ‘Caps’ and ‘right shift‘ to ‘right command‘ staved off RSI in my right pinky, so I’m happy to send him/her some cash.
- weaksauce 7y agohttps://pqrs.org/osx/karabiner/json.html https://pqrs.org/osx/karabiner/json.html if you want to know a bit more about them
- AlchemistCamp 7y agoIs it per program or global? If it's global, it fixes nothing for this specific issue.
- Hnrobert42 7y agoBTT can do both. Karabiner Elements is global only.