With iTerm2 1.0.0 on Mac OS X 10.6.8, I'd like to delete from cursor to the next end of word, i.e. deleting one word forward. I tried Alt+d but this types the delta operator symbol ∂
and doesn't delete. How to suppress the typing but let it delete?
If I use CTRL + W , it deletes the entire command all the way up to the beginning forward slash. This exact same functionality is available on the out-of-the-box Terminal using option + BACKSPACE by using option key as meta key.
Preferences
→ Profile
→ Keys
add the following shortcuts:
⌥← Send Escape Sequence Esc+ b
⌥→ Send Escape Sequence Esc+ f
⌘← Send Escape Sequence Esc+ [H
⌘→ Send Escape Sequence Esc+ [F
⌘←Delete Send Hex Code 0x18 0x7f (add bindkey "^X\\x7f" backward-kill-line
to .zshrc
if you use zShell)
⌥←Delete Send Hex Code 0x1B 0x08
⌘Del→ Send Hex Code 0x0b
⌥Del→ Send Escape Sequence d
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With