Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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

 
discard

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.