This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: Re: set -o vi From: Nick Moffitt <nick@zork.net> Date: Wed, 5 Apr 2000 13:58:55 -0700 begin bobbya quotation: > Meaning that a user can use most of the "vi" commands like w, cw, n, > o, O, and others to edit the command line. > > I have to type "set -o vi" on the command line in order for this to > be possible. In Solaris, I used to put "set -o vi" inside of the > .profile. > > Now that I am using Linux, I tried putting "set -o vi" inside of > .bash_profile, then inside of .bashrc, but nothing worked. Actually, you want "set +o vi". Intuitive, no? I found that little gem by bringing up the bash man page and searching for " vi" (note the space, as that stopped it from matching words like "behavior"). === Subject: Re: set -o vi From: Shane Owenby <shane@collab.net> Date: Wed, 5 Apr 2000 15:35:26 -0700 On Wed, Apr 05, 2000 at 01:58:55PM -0700, Nick Moffitt wrote: > begin bobbya quotation: > > Meaning that a user can use most of the "vi" commands like w, cw, n, > > o, O, and others to edit the command line. > > > > I have to type "set -o vi" on the command line in order for this to > > be possible. In Solaris, I used to put "set -o vi" inside of the > > .profile. > > > > Now that I am using Linux, I tried putting "set -o vi" inside of > > .bash_profile, then inside of .bashrc, but nothing worked. > > Actually, you want "set +o vi". And if you are using Redhat 6.X (AFAIK, but definitely, 6.0, and 6.2) You have to vi /etc/inputrc and delete these lines: # for linux console "\e[1~": beginning-of-line "\e[4~": end-of-line "\e[5~": beginning-of-history "\e[6~": end-of-history "\e[3~": delete-char "\e[2~": quoted-insert # for xterm "\eOH": beginning-of-line "\eOF": end-of-line #for freebsd console "\e[H": beginning-of-line "\e[F": end-of-line After fixing this you have to log out and back in again to have it re-read. > Intuitive, no? This bug sure wasn't, and since it has been reported to RH you figure they would fix it by now. ;-) ===