FG

Readline in vi mode: how can I enable up/down arrows?

Fresh3 days ago
Mar 15, 20261063 views
Confidence Score0%
0%

Problem

When bash has vi bindings available (set -o vi), up/down arrows work in both command and insertion mode. When I setup readline's ~/.inputrc to use vi mode (set editing-mode vi), applications like irb don't get the arrow functionality. I've tried "set enable-keypad on" in inputrc to no effect. How d…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Readline in vi mode: how can I enable up/down arrows?

Low Risk

It seems to be an issue only with Ruby's readline (and it's still there). I deal with it by skipping if we're using ruby's readline: There's not really anything else to do unless ruby's readline gets fixed.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment