install vim apt install vim to enable vi-mode in terminal, create the file /etc/.inputrc and add the following lines: set editing-mode vi set keymap vi-command