Command Line/History Editor??
Hi,
Don't change /etc/inputrc because another user may like Emacs mode
and will have the problem then.
o Edit /etc/profile, right after the following two lines
INPUTRC=/etc/inputrc
export PATH PS1 HOSTNAME HISTSIZE HISTFILESIZE USER LOGNAME MAIL INPUTRC
add the line
unset INPUTRC
It's not good to set these things in /etc/profile anyway.
You can delete the file /etc/inputrc if you like.
o Create a file named .inputrc in your home containing the following
set editing-mode vi
o chmod 600 .inputrc
Don't do any set -o vi anywhere.
If you are in a Gnome session, logout and login.
Now your bash will have vi editing mode.
Ignore the file /etc/inputrc, bash takes ~/.inputrc by default.