My .zshrc
looks like this:
export EDITOR="/usr/bin/vim"
Now when I open a terminal and enter a keyboard shortcut like ctrla to go to the beginning of the line, it doesn't work. Instead, the string ^A
(or some other string, depending on the shortcut I entered) gets entered to the terminal:
emlai:~ % ^A
Removing the word export
from my .zshrc
makes the keyboard shortcuts work properly:
EDITOR="/usr/bin/vim"
Exporting EDITOR
as something else than vim
makes the keyboard shortcuts work too, e.g.:
export EDITOR="/usr/bin/nano"
Why does this happen?
I tested this with bash
as well, and the keyboard shortcuts work properly in all cases there.