4 ms·
> vi is everywhere. Although, surprisingly, most command-line interfaces and command-driven apps (like redis client and psql) use emacs key bindings for comman
by commandlinefan 6y ago
> vi is everywhere.
Although, surprisingly, most command-line interfaces and command-driven apps (like redis client and psql) use emacs key bindings for command history.
- roi 6y agoMost command-line interfaces use the readline library. To switch them to vi bindings put the following in ~/.inputrc: set editing-mode vi
- joatmon-snoo 6y agoThis isn't a deliberate choice though on their part, is it? Isn't it just a consequence of everyone depending on readline and readline using emacs-style key bindings?
- duskwuff 6y agoSome Emacs-style bindings, like ^W (erase word) and ^U (erase line), are baked into the UNIX tty discipline -- basic implementations of these bindings exist within the kernel.