Bug 37471

Summary: set -o vi doesnt work
Product: [Retired] Red Hat Linux Reporter: Need Real Name <medv>
Component: bashAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-04-24 19:44:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2001-04-24 19:44:55 UTC
If I include "set -o vi" into any start script such as /home/myaccount/.profile /home/myaccount/.bashrc /etc/bashrc /etc/profile vi is set and 
emacs is unset according to set -o
but the shell doesnt behave vi
After that I never get my vi-mode
Omitting set -o vi in any script I can get vi-mode by typing it into my interactive shell.

What can I do to get my vi-mode-shell automatically?

thx

martin

ps maybe not a bug but other systems I often handle behave as I assumed (set -o vi in /home/myaccount/.bashrc ... vi-mode in bash 1.14.7(1) 
on rh62 and bash 2.04.0(1) on a tru64-unix.

Comment 1 Bernhard Rosenkraenzer 2001-04-25 16:06:50 UTC
This is fixed in 2.05-1.



Comment 2 Beverly K. Pope 2001-05-07 11:25:11 UTC
I found a workaround that works beautifully for me in the gnu.bash.bug
newsgroup:

>From: stoll.au (stoll.au)
>Subject: RE: Can't pre-set "set -o vi" 
>Date: 1999/11/24
...
>The solution is amazingly simple.  Just add these lines to your
>/etc/inputrc:

>  set editing-mode vi
>  set keymap vi

>The distributed /etc/inputrc is configured exclusively for emacs mode,
>and to that end they've made it impossible to set it to vi mode.  With
>these added lines, you can toggle between the two, and your default is
>vi mode.  What could be better!
...
>Angelika Stoll