Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: vi mode in readline

by morgon (Priest)
on Feb 12, 2019 at 02:17 UTC ( #1229773=note: print w/replies, xml ) Need Help??


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: ");

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1229773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-10-01 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (174 votes). Check out past polls.

    Notices?