Reputation: 8387
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.
Upvotes: 6
Views: 1436
Reputation: 595
The patch here correct the problem for me on Ubuntu 12.04
https://code.launchpad.net/~jake-biesinger/byobu/byobu/+merge/126830
Upvotes: 2
Reputation: 8387
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%.
Upvotes: 5
Reputation: 23404
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
Upvotes: 7