ohmyzsh: Alt-Left-Arrow and Alt-Right-Arrow broken on urxvt in openSUSE

since a recent “git pull” the always working bound-keys

^[^[[D (Alt-Cursor-Left)
^[^[[C (Alt-Cursor-Right)

are not resulting anymore in a backward-word (or forward-word), even though the correct bind keys are set.

"^[^[[D" backward-word
"^[B" backward-word
"^[[1;5D" backward-word
"^[b" backward-word

Alt-B and Alt-F are still working. I’m puzzled. Thanks for any help as these keys are really in my muscle-memory and I can’t live without them…

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 27 (15 by maintainers)

Most upvoted comments

Yeah. Especially if you have your $EDITOR set to vi. bindkey operates on the current default keymap, which OMZ switches to be emacs, but before that, zsh may have defaulted it to vi based on your editor setting, so it may have gone in the wrong keymap.

@Quadrocube that’s probably it. Any user modifications should go after sourcing OMZ.