There are a few things that you can do in order to fix minimal bash like line editing in Ubuntu.
- Check your ~/.inputrc file
Make sure that you have the following lines in your ~/.inputrc file:
set editing-mode vi
set keymap vi-command
- Check your /etc/inputrc file
Make sure that the following lines are uncommented in your /etc/inputrc file:
set editing-mode vi
set keymap vi-command
- Install the vim-tiny package
You can install the vim-tiny package by running the following command:
sudo apt-get install vim-tiny
- Use the stty command
You can use the stty command to turn on vi line editing mode:
stty -ixon