antirez / linenoise

A small self-contained alternative to readline and libedit
BSD 2-Clause "Simplified" License
3.75k stars 664 forks source link

vi mode? #3

Open nogweii opened 14 years ago

nogweii commented 14 years ago

This would seriously up the line count, but I'm also an addict that can't get enough of vi/vim.

Some knowledge of modes, with support for Esc, i, h, l, j & k are the minimal requirements.

bobrippling commented 13 years ago

Added a pull request

John-Appleseed commented 10 years ago

The best feature would be is to have vim mappings. Then I can throw away my .inputrc and start using some imap and nmap shortcuts for all my abbreviated commands. Bash with normal mode would make the command line as productive as the editor. :)

iabbr d !debug_command;
nmap g !git status
dumblob commented 9 years ago

+1

Thank you @bobrippling for your patch - it adds support basically for the whole vi mode, which is awesome! Actually those 150 new lines are imho definitely worth including this patch into this original repository.

eggsyntax commented 8 years ago

+1

This would be a fantastic improvement from my point of view, as I'm using another project (Planck) that uses linenoise. Is anything blocking the pull request from being merged? Thanks!

zorbash commented 8 years ago

This issue is addressed by https://github.com/antirez/linenoise/pull/92.

davetapley commented 1 year ago

Looks like #92 just got close without merging 😞