Bug 37471 - set -o vi doesnt work
set -o vi doesnt work
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: bash (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-04-24 15:44 EDT by Need Real Name
Modified: 2007-04-18 12:32 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-04-24 15:44:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-04-24 15:44:55 EDT
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 12:06:50 EDT
This is fixed in 2.05-1.

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

>From: stoll@deakin.edu.au (stoll@deakin.edu.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

Note You need to log in before you can comment on or make changes to this bug.