Click to See Complete Forum and Search --> : vi mode from command line


buford
01-04-2001, 11:26 PM
At work I use the ksh shell and am able to edit command line stuff with vi commands. Can I do this in Linux as well if I'm using the bash shell? Or do I need to be in the ksh shell? I think I have to put something in my ~/.bashrc file?

pbharris
01-04-2001, 11:49 PM
it does not mater what shell you are using (so long as the path to vi is include, which is /usr/bin/ or /bin for for every *NIX i have used, although i have seen gvim installed to /usr/local/gvim). if you have color tags set up then you will probably want a ~/.vimrc


------------------
I don't use Linux because I hate Windows (which I do) I use Linux because I like it.
pbharris_359@yahoo.com

theflash
01-05-2001, 12:09 AM
Yeah, you can use either an emacs or vi editing style in the bash shell. I can check my O'reilly bash shell book on how to switch if you're interested.

wmHardRock
01-05-2001, 01:33 AM
set -o vi

buford
01-05-2001, 07:26 AM
Thanks for the help.
set -o vi works.

buford
01-05-2001, 07:27 AM
Thanks for the help.
set -o vi works.