bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] the "v" keystroke does only work in bash ?


From: Chet Ramey
Subject: Re: [Bug-readline] the "v" keystroke does only work in bash ?
Date: Fri, 03 Jan 2014 08:29:43 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

On 1/2/14 8:35 PM, Marc Chantreux wrote:
> hello,
> 
> I use GNU Readline 6.2 provided by ubuntu and the following is my
> current .inputrc.
> 
> when i'm using bash, i can edit the current line typing v in vi-command
> mode but it seems this is a bash only feature. is it right? can it be
> fixed?

Yes, this is a function that bash adds to readline using the function API.
It executes the line(s) internally and adds the command(s) to the history
list, as if they had been typed directly, and accesses the history list if
given a numeric argument.  It's not general enough to make part of readline.

Other applications could add something similar, but I don't know that any
have.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]