[haskeline] #84: Vi mode noticeably not backward compatible with readline

haskeline haskeline at projects.haskell.org
Mon Jun 1 15:55:04 EDT 2009

#84: Vi mode noticeably not backward compatible with readline
Reporter:  jdanbrown  |       Owner:     
    Type:  defect     |      Status:  new
Priority:  major      |   Milestone:     
 Version:  0.6        |    Keywords:     
 Thank you for implementing vi line editing—but please also finish the

 libreadline has an extensive set of vi commands that most replacement
 libraries fail to match. Here are just a few command-mode keys that I
 notice don't work:

   j - previous line in history[[BR]]
   k - next line in history[[BR]]
   f - find character[[BR]]
   F - find character (backward)[[BR]]
   t - find character-1[[BR]]
   T - find character-1 (backward)[[BR]]
   D - delete rest of line[[BR]]
   C - change rest of line (delete, then enter insert mode)[[BR]]
   !^ - go to first non-whitespace character in line[[BR]]
   p - paste (pos+1)[[BR]]
   P - paste

 Additionally, using up/down in command mode puts the cursor at the end of
 the line, whereas readline puts it at the beginning of the line. I'm not
 sure whether one is more convenient or correct, but UI consistency is more
 important here and every other program I encounter uses libreadline.

 Note: I'm not sure if v0.6 is correct—this is whichever version ships with

Ticket URL: <http://trac.haskell.org/haskeline/ticket/84>
haskeline <http://example.org/>
My example project

More information about the Haskeline mailing list