| Version 4 (modified by cjs, 4 years ago) |
|---|
A collection of vi commands supported by libreadline that aren't yet supported by haskeline (see #84):
j previous line in history k next line in history e end of word E end of bigword X delete previous character . repeat previous command D delete rest of line C change rest of line (delete, then enter insert mode) f find character F find character (backward) t find character-1 T find character-1 (backward) ^ go to first non-whitespace character in line % jump to matching brace: () {} [] p paste (pos+1) P paste ^D enter, when line is not empty / reverse search through history (with n to continue to next while searching, and shift-N to reverse search direction) ? forward search through history (using n/N as above)
Some of these can be configured using the bind command in the .haskeline file in your home directory. For example, the following will put you in vi mode, and let you use the j and k keys to scroll down and up in your history:
editMode: Vi bind: k up bind: j down
