Last Updated: February 25, 2016
·
670
· aminz

Better vi-mode for all programs using readline

To enable vi-mode keybindings for all prompts using readline (ie. very useful with MySQL prompt), you may set it in your ~/.inputrc likewise:

set keymap vi
set editing-mode vi

man readline for more informations.