How to configure zsh such that Ctrl+Backspace kills the word before point? How to achieve that Ctrl+Delete kills the word after point?
I use urxvt as terminal emulator.
|
How to configure zsh such that Ctrl+Backspace kills the word before point? How to achieve that Ctrl+Delete kills the word after point? I use urxvt as terminal emulator. |
|||||
|
|
I'll focus on Ctrl+Delete first. The zsh command to delete a whole word forwards is called How to make Ctrl+Delete do it too depends on which terminal emulator you are using. On my system, this works in xterm and Gnome Terminal:
and for urxvt, you should do:
If that doesn't work, try typing Ctrl+V Ctrl+Delete to see what the value is on your system. You could even add both of those together to your Ctrl+Backspace seems harder. On my system, pressing that is the same as pressing just Backspace. If yours is the same, I think your best option is to use Alt+Backspace or Ctrl+W instead. |
|||||||||||
|
|
I've got this in my
and that in my
This kills each whitespace seperated word. Note that '^[' is the Escape character. You have to |
|||
|
|