CTRL+A, for example, is printing "^A" instead of returning my cursor to the start of the line.

This happens via ssh, in a screen session, or on the hard console. $TERM shows either xterm or linux depending on which one I'm on.

How do I get the keymap fixed?

1 Answer 1


You have enabled vi mode for bash somewhere like this "set -o vi" (probably in your ~/.bashrc file)

You need to remove that line or change to "set -o emacs"

  • Yes, it went to vi mode. Can't find WHERE it went to vi mode, especially since set alone says nothing about it, but thanks for the fix. Aug 13, 2009 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.