LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 01-04-2002, 08:34 AM   #1
taz75
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Rep: Reputation: 0
Question 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,
Laura
 
Old 01-04-2002, 10:37 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
suse should come with vi... as do about every other linux distro..
 
Old 01-04-2002, 10:42 AM   #3
taz75
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
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?
 
Old 01-04-2002, 10:44 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
as far as i know yes.. vi on one unix system is the same program on another..
 
Old 01-04-2002, 10:52 AM   #5
taz75
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 01-04-2002, 11:16 AM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
this site might have your answers: http://www.eng.hawaii.edu/Tutor/vi.html
 
Old 01-04-2002, 12:29 PM   #7
taz75
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
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??
 
Old 01-04-2002, 01:00 PM   #8
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
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.
 
Old 01-04-2002, 01:30 PM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
I found it here http://ctdp.tripod.com/os/linux/user...vironment.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enhanced command line text editor netsoft2005 Linux - Software 2 07-14-2005 07:42 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
vi editor/command line free guide fhameed Linux - Software 3 12-12-2003 09:16 AM
Mandrake 9.1 installed command line text editor plexi100 Linux - Newbie 1 11-07-2003 10:25 PM
VI text editor in command line InSane103 Linux - Software 4 07-09-2003 09:04 PM


All times are GMT -5. The time now is 07:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration