When used in uxterm zsh is jumping words when I press ctrl+left
and ctrl+right
.
When used in plain unconfigured byobu (tmux backend) it is not. The cursor sits there doing nothing.
I can however achieve that by using alt+b and alt+f, but I'd really like to use ctrl+arrow in keeping with general system-wide ergonomics.
Create ~/.byobu/.tmux.conf
with this value:
set-window-option -g xterm-keys on
Then add the following to ~/.byobu/keybindings.tmux
unbind-key -n C-Left
unbind-key -n C-Right
OK, I found a workaround :
bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word
in ~/.zshrc
To find out the arcane key code I had to cat -v
and enter them. Gosh my productivity went up 15%.
The patch here correct the problem for me on Ubuntu 12.04
https://code.launchpad.net/~jake-biesinger/byobu/byobu/+merge/126830
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