-   Linux - Newbie (
-   -   vi as Command Line Editor (

taz75 01-04-2002 09:34 AM

vi as Command Line Editor
I use SCO-UNIX and we have vi as our command line editor

Can any one tell me if/how I can get this on SuSE LINUX?

Thanks in advance,

trickykid 01-04-2002 11:37 AM

suse should come with vi... as do about every other linux distro..

taz75 01-04-2002 11:42 AM

Sorry - I don't think that I made myself very clear:

Yes I can use vi to edit files, but what I was asking was -
Is it possible to use vi commands to edit whatever is typed on the command line and more usefully to use the search facility to find a command from the history?

For example on SCO I can use
<esc> /sqlplus <return>
to scroll back [using <n>] through all commands in the history that have "sqlplus" in them.

Does this make more sense?

trickykid 01-04-2002 11:44 AM

as far as i know yes.. vi on one unix system is the same program on another..

taz75 01-04-2002 11:52 AM

OK - so any idea how I change the configuration so I can use my vi commands on the command line?

I don't know how it was set up on SCO-UNIX - and don't even know where to look.

trickykid 01-04-2002 12:16 PM

this site might have your answers:

taz75 01-04-2002 01:29 PM

From what I can see that site just shows you how to use the vi editor - but not how to use vi to edit text directly on the command line.

Any more ideas??

neo77777 01-04-2002 02:00 PM

there is an environment virable that holds the command line editor, let me dig through my UNIX books to find it. I'll post the answer asap.

neo77777 01-04-2002 02:30 PM

I found it here

All times are GMT -5. The time now is 06:34 PM.