iterm2配置

用惯了ubuntu再terminal里的各种快捷键,换成了mac后发现居然没有。

1. 光标跳转单词

Preferences -> keys
⌥← / Send Escape Sequence / b
⌥→ / Send Escape Sequence / f

2. 删除单词

⌥delete / Send Hex Codes / 0x17

3. 删除整行

command delete / Send Hex Codes / 0x15

如果按键出现 '[D' 、 '[C'这种情况
Preferences > Profiles > Keys > Load Preset
选择Natural Text Editing

参考https://segmentfault.com/a/1190000004122657

猜你喜欢

转载自blog.csdn.net/weixin_33724570/article/details/90993414