bug-readline
[Top][All Lists]
Advanced

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

Re: [Bug-readline] vi-mode remapping


From: Chet Ramey
Subject: Re: [Bug-readline] vi-mode remapping
Date: Fri, 12 Aug 2016 10:17:10 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/11/16 12:40 AM, A Higgs wrote:
> There are some undocumented limitations to remapping keys in vi-mode.

The readline vi-mode implementation is mostly concerned with Posix
conformance, and implements the specific vi commands with their Posix
key bindings.

There are, as you note, a number of places where the code checks for
specific command characters (e.g., the list of motion and text
modification commands).  This could be changed with considerable
work, using a level of indirection that maps key bindings to a
normalized set of command characters, or changing all the tests for
specific characters to check for bound commands (and even that would
not work in all cases).

This is a low-priority task.

Chet

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



reply via email to

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