Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently followed this post's advice on how to make vi more ubiquitous and I changed my readline mode to vi. Before I did this, I could use the arrow keys to access previously executed commands. This is no longer the case. How can I access previously executed commands from a readline prompt in vi mode?

share|improve this question
up vote 4 down vote accepted

Readline's vi mode starts out in insert mode, and doesn't have the insert mode arrow key bindings found in some versions of vi; this means you have to hit Esc first, then the arrow keys or the standard vi h/j/k/l keys will work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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