http://qs321.pair.com?node_id=1229773


in reply to vi mode in readline

To answer my own question (I am sure in a few year's time I'll have to look it up again and hop to find this then), this seems to work:
use strict; use Term::ReadLine; my $term = Term::ReadLine->new('a'); # use vi-mode $term->parse_and_bind("set editing-mode vi"); print "you entered: " . $term->readline("Enter something: ");