- Open iterm settings,
Profiles
, select your profile (Default) - Choose
Other Actions...
at bottom,Duplicate profile
- Download
Hotkeys.json
to~/Library/Application Support/iTerm2/DynamicProfiles/Hotkeys.json
- Open iterm settings,
Profiles
, selectHotkeys (Dynamic)
- Choose
Other Actions...
at bottom,Bulk Copy from Selected Profile...
- Enable
Keys
checkbox and choose your profile (Default), pressCopy
button
Move:
⌘←
move to begin of line⌘→
move to end of line⌥←
move left by word⌥→
move right by word
Delete:
⌘⌫
delete from cursor to begin of line⌘⌦
,fn⌘⌫
delete from cursor to end of line⌥⌫
delete word left⌥⌦
,fn⌥⌫
delete word right
Selection:
⌥⇧Arrow
- move start of selection by char or line⌘⇧Arrow
- move end of selection by char or line
Navigation:
⌥⌘←
cycle tabs left⌥⌘→
cycle tabs right^⌘←
move tab left^⌘→
move tab right
⌘⌫
mapped to Ctrl-u, which is bound to kill-whole-line
by default. Try
bindkey \^U backward-kill-line