LinuxQuestions.org
Review your favorite Linux distribution.
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
  Search this Thread
Old 08-19-2003, 03:11 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
setting up your default editor


Dont I feel foolish. I cannot recall on how to set your default editor to the one of your choosing.

Im not sure what happened, but vim was removed from my system. But I still have vi located in /bin/vi.

If I type vi <file> i get this:

Quote:
[root@corpmail root]# vi anaconda-ks.cfg
-bash: vim: command not found
I thought I add it right by typing the following:

export VISUAL=vi

But that did not work.

Can anyone tell me what im missing and how to set VI back to my default editor?

T.
 
Old 08-19-2003, 03:30 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
probably there is an alias set up for "vi" (check with "type -p vi" if you are running bash as your shell)

try installing the 'vim' package or alias vi to some editor you have installed
 
Old 08-19-2003, 03:30 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Try the full path
export VISUAL=/bin/vi
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing default editor zyphonic Linux - General 8 11-14-2005 08:35 AM
Changing default editor Tony Empire Linux - Software 5 12-27-2004 01:45 PM
jEDIT as default editor on a PC saurya_s General 1 03-17-2004 05:00 PM
default editor RedHat 9.0 ner Linux - Newbie 1 11-17-2003 03:07 PM
setting default page size and default tray lived4eva Linux - General 1 11-04-2003 03:39 PM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration