Mac 自分セッティング

mac では control と command をスワップしているが、
terminal, vim, Remote Desktopではスワップせずに使いたいときの設定。
KeybordはRealforce

Karabiner element を起動して、
Target Device: Realforce を選択

  • PCキーボードのかなキー かなキー
  • PCキーボードの無変換キー 英数キー
  • PCキーボードの変換キー かなキー
  • caps_lock left_command
  • left_command left_option
  • left_control left_option
  • left_option left_option
  • right_control fn
  • right_option right_command

https://pqrs.org/osx/karabiner/complex_modifications/
[Application Specific > Remote Desktop > Swap command and control]
をimport
これでRemote Desktopのみ、ctrl と command がスワップする

~/.config/karabiner/karabiner.json
を編集して、

"bundle_identifiers": [
"com\\.microsoft\\.rdc\\.mac"
],

 に

"^com\\.apple\\.Terminal$",
"^org\\.vim\\.",

 

の2行を挿入(4箇所)

(追記)

Home/End キーをPCと同じ設定をするには、

"PC-Style Home/End" をimport