It seems like ctrl + W deletes backwards one word at a time. That's great, but I'd really really like that this works with ctrl + backspace like most other apps.
What's the best way to do this? I'd need the change to affect gnome-terminal commands, command line vim and GUI vim.
Best Answer
[ for gnome-terminal ]
use
stty
tool, good for visualzing whatbash
keyboard shortcuts are binded.see your current bash keyboard shortcuts (my system output):
my output:
werase
is responsbile for deleting an entire word.running this will set
ctrl
+backspace
to erase a word when pressed.!note: this will set this option
only
to your current terminal/bash session. in order to apply thispermanently
you need to add previous command to.bashrc
file at the end of it.settings from .bashrc will be loaded every time you open gnome-terminal.
after this you are ready to go. enjoy.