My terminal has recently started printing control characters (e.g.
^N) when I press Ctrl+P (or other combinations). I'm not sure what caused the change. Here is my
.tmux.conf file. Any ideas?
^D, and a few others still work as expected.
I just realized that it works when using
bash inside of
tmux, but not with my usual
zsh. Any ideas?
I think this was a load order problem. In my
.zshrc I set
EDITOR=vim, which causes zsh to switch to vim keybindings. However, for a normal terminal session, apparently it was being set too late, but when
tmux is run, a new
zsh process is started, and this time
EDTIOR is already set to vim, so it switches to vim keybindings. Putting
bindkey -e right after
EDITOR=vim in my
.zshrc fixed the problem.