I'm trying to bind the command usualy binded to ^W with ctrl+backspace.
I have two problem here, one for each parameter of the bindkey command:
That is, press the Ctrl key and hold it down, and press the Backspace key at the same time.
If these two keyboard functions are enabled, sometimes your backspace key cannot work fine. Follow these to turn off these two feature to get your backspace work again: 1) Type ease in the search box from Start. Then click Ease of Access keyboard settings.
Ctrl + Shift + ← (left arrow) highlights a word backwards. Then press Delete to delete the last word.
Ctrl + U = Delete left of the cursor. Ctrl + K = Delete right of the cursor. Ctrl + W = Delete word on the left.
One may use:
bindkey '^H' backward-kill-word
Note that on old versions of GNOME terminal, it won't work, see this related question and this bug report. As indicated bellow, this seems fixed in current version.
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