iTerm2, keys - abigure/personal-settings GitHub Wiki
Keys
iTerm > Preferences, Keys(tab)
新增 cmd + shift + (↑ / ↓ / ← / →) : Select Split Pane on (Above / Below / Left / Right)
新增 option + ←:Send Escape Sequence > 填入 b (往前跳一個 word) (此行為可能要重開 iTerm 才會生效)
新增 option + →:Send Escape Sequence > 填入 f (往後跳一個 word)
修改 cmd + ←:Send Hex Code > 填入 0x01 (跳到行首)
修改 cmd + →:Send Hex Code > 填入 0x05 (跳到行尾)
新增 F9:Send Text > 填入 next\n (pry debug 時使用)
alt ←: escape-f : go to previous word
alt →: escape-b: go to next word
cmd ←: hexcode: 0x01: go to beginning of line
cmd →: hexcode: 0x05: go to end of line
option-backspace: Hexcode: 0x17: delete previous word
option-del : escape-d: delete next word
cmd-backspace: Hexcode: 0x15: delete until beginning of the line
cmd-del: Hexcode: 0xB: delete until end of the line