Changes between Version 7 and Version 8 of KeyBindings

Show
Ignore:
Timestamp:
09/15/09 00:39:20 (5 years ago)
Author:
judah (IP: 75.85.89.204)
Comment:

Add all of the new vi commands.

Legend:

Unmodified
Added
Removed
Modified
  • KeyBindings

    v7 v8  
    55As of version 0.5, the user may specify [CustomKeyBindings custom key bindings] in their `.haskeline` file. 
    66 
     7Commands marked with (*) are available in version 0.6.2 and later. 
     8 
    79Definitions: 
    810 - `^A`: Control-A 
    911 - `M-A`: Option-A 
    10  - {{{[printable char]}}}: Any Unicode printable character (`Data.Char.isPrint` returns `True`)  
     12 - {{{[c]}}}: Any Unicode printable character (`Data.Char.isPrint` returns `True`)  
    1113 - {{{[kill]}}}: the console's 'kill' character (usually `^U`) 
    1214== Commands shared by both bindings == 
     
    1517||Backspace||delete the character left of the cursor|| 
    1618||Delete|| delete the character right of the cursor|| 
    17 ||{{{[printable char]}}} ||insert a character|| 
     19||{{{[c]}}} ||insert a character|| 
    1820||Up/down arrow|| move backwards/forwards in the command history|| 
    1921||Tab|| run tab completion|| 
     
    5153||R|| replace many characters|| 
    5254||u|| undo|| 
    53 ||. or {{{^R}}}||redo|| 
     55||{{{^R}}}||redo|| 
    5456||[n][movement]|| do a movement, repeated n times|| 
    5557||[n]d[movement]|| delete the characters the movement would move past|| 
    5658||[n]c[movement]|| delete the characters the movement would move past, and enter insert mode|| 
    5759||[n]x|| delete the character under the cursor (repeated n times)|| 
     60||[n]X|| delete the character before the cursor (repeated n times) (*)|| 
     61||[n].|| repeat the previous command n times (*)|| 
    5862||dd|| delete the whole line|| 
    59 ||cc|| delete the whole line and enter insertmode|| 
     63||cc|| delete the whole line and enter insert mode|| 
     64||D|| delete until the end of the line (*) || 
     65||C|| delete the rest of the line and enter insert mode (*)|| 
     66||j|| previous line in the history (*)|| 
     67||k|| next line in the history (*)|| 
     68||p|| paste after the cursor (*)|| 
     69||P|| paste before the cursor (*)|| 
     70||/|| search backwards  through the history (*) || 
     71||?|| search forwards through the history (*) || 
     72||n|| continue the current history search (*) || 
     73||N|| reverse the current history search (*) || 
     74||~|| toggle case (*) || 
     75|| !^W || erase previous word (*)|| 
     76||!^D||enter, when the line is not empty (*)|| 
     77 
     78 
    6079 
    6180The movement commands are: 
     
    6382||l||right one character|| 
    6483||{{{[space]}}}||right one character|| 
     84||0||move to the start of the line|| 
     85||$||move to the end of the line|| 
    6586||w||right one word|| 
    6687||b||left one word|| 
    6788||W||right one bigword|| 
    6889||B||left one bigword|| 
    69 ||0||move to the start of the line|| 
    70 ||$||move to the end of the line|| 
    71  
    72 Missing commands and workarounds are documented at ViModeCompatibility. 
     90||e||end of word (*)|| 
     91||E||end of bigword (*)|| 
     92||!^||first non-whitespace character in the line (*)|| 
     93||f`[c]`||next appearance of character `[c]` (*)|| 
     94||F[c]||previous appearance of character `[c]` (*)|| 
     95||t`[c]`||to the left of the next appearance of character `[c]` (*)|| 
     96||T`[c]`||to the left of the previous appearance of character `[c]` (*)|| 
     97||%|| jump to the brace matching the one under the cursor (`(), {} or []`) (*)||