bug-bash
[Top][All Lists]
Advanced

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

Re: readline: edit (mode:vi) means eol unreachable


From: Chet Ramey
Subject: Re: readline: edit (mode:vi) means eol unreachable
Date: Thu, 08 Feb 2007 09:19:51 -0500
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Hugh Sasse wrote:

>> either they need to be in termcap/terminfo or you need to bind them
>> yourself in .inputrc.  If the key sequence isn't bound, it will be
> 
> Either strategy is equally valid?  Well, I'm trying to get terminfo
> right.  

Sure, either way is OK from readline's perspective -- the end result is
identical.

> Then what is the correct behaviour when all is working?  
> Should I be able to move left with the arrow keys and then move
> far enough right to append, or should I have to hit <ESC><A>
> to append?

You should be able to move right when in command mode, but need to hit
ESC-a to go into append mode.  When in insert mode, you should be able
to move to the current end of line with the arrow keys, but those keys
will not insert characters.

Since vi is moded, you need a function to run to perform all of the
actions needed to put you into append mode from command mode.

Chet


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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