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
  Search this Thread
Old 03-10-2011, 03:47 PM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
How editor can be changed in redhat linux


How default editor can be changed in redhat linux to different editor.

Thanks
 
Old 03-10-2011, 03:48 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
What do you mean the default editor? Text editor? Graphic editor? You need to explain more details........
 
Old 03-10-2011, 03:55 PM   #3
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
yes I mean by text editor (vi editor)
 
Old 03-10-2011, 04:00 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Code:
export EDITOR=/usr/bin/vim
Simplest way. If you are using bash, you can put that into your .bashrc file. Also note that the location to vim might be different in your system, since you didn't tell us what distro you are using or anything. If in doubt, run the following:
Code:
which vim
 
Old 03-10-2011, 05:04 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
you do know that "nano" is also installed ( by default) for the terminal

also VI is not just a "text editor"
it is a full fledged word processor

and if you have gnome installed there is gedit the DEFAULT gui text editor

or there is emacs also a full fledged word processor and front end for gcc too ( a Swiss army knife)
 
  


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
Installation of vi editor in redhat linux ravishanker Linux - Software 2 05-03-2010 04:49 AM
linux distro / photo editor / music editor of choice ?? expatcanuck Linux - Newbie 1 05-04-2009 06:24 PM
LXer: Open Movie Editor: Linux Video Editor with Plot Twists LXer Syndicated Linux News 0 10-27-2008 10:50 PM
Editor for pico and kate (Linux redhat version 9) two_faced_moon Red Hat 0 07-20-2004 06:56 AM
Security Level just can't be changed in redhat linux... ZhiYi Linux - Networking 2 02-12-2003 04:52 PM


All times are GMT -5. The time now is 04:08 PM.

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